public class ClassPath extends 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(String pathstr)
Build a class path from the specified path string
|
ClassPath(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(String name)
Find the specified directory in the class path
|
ClassFile |
getFile(String name)
Load the specified file from the class path
|
Enumeration<ClassFile> |
getFiles(String pkg,
String ext)
Returns list of files given a package name and extension.
|
String |
toString()
Returns original class path string
|
public ClassPath(String pathstr)
public ClassPath(String[] patharray)
public ClassPath()
public ClassFile getDirectory(String name)
public Enumeration<ClassFile> getFiles(String pkg, String ext)
public void close()
throws IOException
IOExceptionCopyright © 2017. All Rights Reserved.