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

Quick Search    Search Deep

Bootstrap
Class PrimordialClassLoader.ZipFileElement  view PrimordialClassLoader.ZipFileElement download PrimordialClassLoader.ZipFileElement.java

java.lang.Object
  extended byBootstrap.PrimordialClassLoader.ClasspathElement
      extended byBootstrap.PrimordialClassLoader.ZipFileElement
Enclosing class:
PrimordialClassLoader

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)  java.util.zip.ZipFile zf
           
 
Constructor Summary
(package private) PrimordialClassLoader.ZipFileElement(java.util.zip.ZipFile 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)  java.io.InputStream 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

java.util.zip.ZipFile zf

entries

java.util.Map entries
Constructor Detail

PrimordialClassLoader.ZipFileElement

PrimordialClassLoader.ZipFileElement(java.util.zip.ZipFile zf)
Method Detail

initializeEntryMap

void initializeEntryMap()

toString

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

java.io.InputStream 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

containsResource

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

listPackage

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

listPackages

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

finalize

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


listPackage

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