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

Quick Search    Search Deep

Bootstrap
Class PrimordialClassLoader.PathElement  view PrimordialClassLoader.PathElement download PrimordialClassLoader.PathElement.java

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

static class PrimordialClassLoader.PathElement
extends PrimordialClassLoader.ClasspathElement

A regular path string in the CLASSPATH.


Field Summary
(package private)  java.util.Set entries
           
(package private)  java.lang.String path
           
 
Constructor Summary
(package private) PrimordialClassLoader.PathElement(java.lang.String path)
           
 
Method Summary
private  void buildEntries(java.lang.String pathn)
           
(package private)  boolean containsResource(java.lang.String name)
           
(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 pathn, boolean recursive)
           
(package private)  java.util.Iterator listPackages()
           
private  void listPackages(java.lang.String dir, java.util.HashSet pkgs)
           
 java.lang.String toString()
          Convert this Object to a human-readable String.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

path

java.lang.String path

entries

java.util.Set entries
Constructor Detail

PrimordialClassLoader.PathElement

PrimordialClassLoader.PathElement(java.lang.String path)
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 pathn,
                               boolean recursive)
Specified by:
listPackage in class PrimordialClassLoader.ClasspathElement

listPackages

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

listPackages

private void listPackages(java.lang.String dir,
                          java.util.HashSet pkgs)

buildEntries

private void buildEntries(java.lang.String pathn)

listPackage

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