public class ClassPath
extends java.lang.Object
| Constructor and Description |
|---|
ClassPath()
Build a default class path from the path strings specified by
the properties sun.boot.class.path and env.class.path, in that
order.
|
ClassPath(java.lang.String pathstr)
Build a class path from the specified path string
|
ClassPath(java.lang.String[] patharray)
Build a class path from the specified array of class path
element strings.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Release resources.
|
ClassFile |
getDirectory(java.lang.String name)
Find the specified directory in the class path
|
ClassFile |
getFile(java.lang.String name)
Load the specified file from the class path
|
java.util.Enumeration<ClassFile> |
getFiles(java.lang.String pkg,
java.lang.String ext)
Returns list of files given a package name and extension.
|
java.lang.String |
toString()
Returns original class path string
|
public ClassPath(java.lang.String pathstr)
public ClassPath(java.lang.String[] patharray)
public ClassPath()
public ClassFile getDirectory(java.lang.String name)
public ClassFile getFile(java.lang.String name)
public java.util.Enumeration<ClassFile> getFiles(java.lang.String pkg, java.lang.String ext)
public void close()
throws java.io.IOException
java.io.IOExceptionpublic java.lang.String toString()
toString in class java.lang.ObjectCopyright © 2016. All Rights Reserved.