Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

Class PrimordialClassLoader.ZipFileElement  view PrimordialClassLoader.ZipFileElement download

  extended byBootstrap.PrimordialClassLoader.ClasspathElement
      extended byBootstrap.PrimordialClassLoader.ZipFileElement
Enclosing class:

static class PrimordialClassLoader.ZipFileElement
extends PrimordialClassLoader.ClasspathElement

A .zip or .jar file in the CLASSPATH.

Field Summary
(package private)  java.util.Map entries
(package private) zf
Constructor Summary
(package private) PrimordialClassLoader.ZipFileElement( zf)
Method Summary
(package private)  boolean containsResource(java.lang.String name)
protected  void finalize()
          Close the zipfile when this object is garbage-collected.
(package private) getResourceAsStream(java.lang.String name)
          Open a stream to read the given resource, or return null if resource cannot be found.
(package private)  void initializeEntryMap()
(package private)  java.util.Iterator listPackage(java.lang.String packagename)
          Iterate over all classes in the given package.
(package private)  java.util.Iterator listPackage(java.lang.String pathname, boolean recursive)
(package private)  java.util.Iterator listPackages()
 java.lang.String toString()
          Convert this Object to a human-readable String.
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait

Field Detail

zf zf


java.util.Map entries
Constructor Detail


PrimordialClassLoader.ZipFileElement( zf)
Method Detail


void initializeEntryMap()


public java.lang.String toString()
Description copied from class: java.lang.Object
Convert this Object to a human-readable String. There are no limits placed on how long this String should be or what it should contain. We suggest you make it as intuitive as possible to be able to place it into System.out.println() 55 and such.

It is typical, but not required, to ensure that this method never completes abruptly with a java.lang.RuntimeException.

This method will be called when performing string concatenation with this object. If the result is null, string concatenation will instead use "null".

The default implementation returns getClass().getName() + "@" + Integer.toHexString(hashCode()).

getResourceAsStream getResourceAsStream(java.lang.String name)
Description copied from class: PrimordialClassLoader.ClasspathElement
Open a stream to read the given resource, or return null if resource cannot be found.

Specified by:
getResourceAsStream in class PrimordialClassLoader.ClasspathElement


boolean containsResource(java.lang.String name)
Specified by:
containsResource in class PrimordialClassLoader.ClasspathElement


java.util.Iterator listPackage(java.lang.String pathname,
                               boolean recursive)
Specified by:
listPackage in class PrimordialClassLoader.ClasspathElement


java.util.Iterator listPackages()
Specified by:
listPackages in class PrimordialClassLoader.ClasspathElement


protected void finalize()
                 throws java.lang.Throwable
Close the zipfile when this object is garbage-collected.


java.util.Iterator listPackage(java.lang.String packagename)
Iterate over all classes in the given package.