Package org.glassfish.rmic.tools.java
Class ClassPath
java.lang.Object
org.glassfish.rmic.tools.java.ClassPath
This class is used to represent a class path, which can contain both
directories and zip files.
WARNING: The contents of this source file are not part of any
supported API. Code that depends on them does so at its own risk:
they are subject to change or removal without notice.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final char
private final String
private ClassPathEntry[]
List of class path entriesprivate String
The original class path string -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
Release resources.(package private) ClassFile
getDirectory
(String name) Find the specified directory in the class pathLoad the specified file from the class pathprivate ClassFile
(package private) Enumeration
<ClassFile> Returns list of files given a package name and extension.private FileSystem
private void
private void
toString()
Returns original class path string
-
Field Details
-
dirSeparator
private static final char dirSeparator -
pathstr
The original class path string -
path
List of class path entries -
fileSeparatorChar
-
-
Constructor Details
-
ClassPath
ClassPath(String pathstr) Build a class path from the specified path string -
ClassPath
Build a class path from the specified array of class path element strings. This constructor, and the corresponding "init" method, were added as part of the fix for 6473331, which adds support for Class-Path manifest entries in JAR files to rmic. It is conceivable that the value of a Class-Path manifest entry will contain a path separator, which would cause incorrect behavior if the expanded path were passed to the previous constructor as a single path-separator-delimited string; use of this constructor avoids that problem.
-
-
Method Details
-
getJrtFileSystem
-
init
-
init
-
getDirectory
Find the specified directory in the class path -
getFile
Load the specified file from the class path -
getFile
-
getFiles
Returns list of files given a package name and extension. -
close
Release resources.- Throws:
IOException
-
toString
Returns original class path string
-