final class ClassPoolTail
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
protected ClassPathList |
pathList |
| Constructor and Description |
|---|
ClassPoolTail() |
| Modifier and Type | Method and Description |
|---|---|
ClassPath |
appendClassPath(ClassPath cp) |
ClassPath |
appendClassPath(java.lang.String pathname) |
ClassPath |
appendSystemPath() |
static void |
copyStream(java.io.InputStream fin,
java.io.OutputStream fout)
Reads from an input stream and write to an output stream
until it reaches the end.
|
java.net.URL |
find(java.lang.String classname)
Searches the class path to obtain the URL of the class file
specified by classname.
|
ClassPath |
insertClassPath(ClassPath cp) |
ClassPath |
insertClassPath(java.lang.String pathname) |
private static ClassPath |
makePathObject(java.lang.String pathname) |
(package private) java.io.InputStream |
openClassfile(java.lang.String classname)
Opens the class file for the class specified by
classname. |
static byte[] |
readStream(java.io.InputStream fin)
Reads from an input stream until it reaches the end.
|
void |
removeClassPath(ClassPath cp) |
java.lang.String |
toString() |
(package private) void |
writeClassfile(java.lang.String classname,
java.io.OutputStream out)
This method does not close the output stream.
|
protected ClassPathList pathList
public java.lang.String toString()
toString in class java.lang.Objectpublic void removeClassPath(ClassPath cp)
public ClassPath appendSystemPath()
public ClassPath insertClassPath(java.lang.String pathname) throws NotFoundException
NotFoundExceptionpublic ClassPath appendClassPath(java.lang.String pathname) throws NotFoundException
NotFoundExceptionprivate static ClassPath makePathObject(java.lang.String pathname) throws NotFoundException
NotFoundExceptionvoid writeClassfile(java.lang.String classname,
java.io.OutputStream out)
throws NotFoundException,
java.io.IOException,
CannotCompileException
NotFoundExceptionjava.io.IOExceptionCannotCompileExceptionjava.io.InputStream openClassfile(java.lang.String classname)
throws NotFoundException
classname.classname - a fully-qualified class nameNotFoundException - if any error is reported by ClassPath.public java.net.URL find(java.lang.String classname)
classname - a fully-qualified class name.public static byte[] readStream(java.io.InputStream fin)
throws java.io.IOException
java.io.IOExceptionpublic static void copyStream(java.io.InputStream fin,
java.io.OutputStream fout)
throws java.io.IOException
java.io.IOException