public class JarFileCommitter extends ClassFileLoader
DEBUG, USE_SYSTEM_CLASSES| Constructor and Description |
|---|
JarFileCommitter(java.io.File file,
boolean compress,
java.lang.String version,
java.lang.String author)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
done()
Signifies that we are finished with this JarFileCommitter.
|
java.io.OutputStream |
outputStreamFor(ClassInfo info)
Returns an OutputStream to which a class file should be
written.
|
protected java.io.OutputStream |
outputStreamFor(java.lang.String name)
Returns an
OutputStream to which somed named entity is
written. |
appendClassPath, getClassPath, loadClass, loadClassesFromZipFile, newClass, outputDir, prependClassPath, setClassPath, setOutputDir, setVerbose, writeEntrypublic JarFileCommitter(java.io.File file,
boolean compress,
java.lang.String version,
java.lang.String author)
throws java.io.IOException
file - File representing JAR filecompress - If true, contents of JAR file is compressedversion - Version for the JAR file's manifestauthor - Author string from JAR file's manifestjava.io.IOExceptionprotected java.io.OutputStream outputStreamFor(java.lang.String name)
throws java.io.IOException
ClassFileLoaderOutputStream to which somed named entity is
written. Any forward slashes in the name are replaced by
File.separatorChar.outputStreamFor in class ClassFileLoaderjava.io.IOExceptionpublic java.io.OutputStream outputStreamFor(ClassInfo info) throws java.io.IOException
ClassFileLoaderoutputStreamFor in interface ClassInfoLoaderoutputStreamFor in class ClassFileLoaderjava.io.IOExceptionpublic void done()
throws java.io.IOException
done in class ClassFileLoaderjava.io.IOException