public class Archive extends java.lang.Object
unpack()
is called, to unpack the
pack200 archive.Constructor and Description |
---|
Archive(java.io.InputStream inputStream,
java.util.jar.JarOutputStream outputStream)
Creates an Archive with streams for the input and output files.
|
Archive(java.lang.String inputFile,
java.lang.String outputFile)
Creates an Archive with the given input and output file names.
|
Modifier and Type | Method and Description |
---|---|
void |
setDeflateHint(boolean deflateHint) |
void |
setLogFile(java.lang.String logFileName) |
void |
setLogFile(java.lang.String logFileName,
boolean append) |
void |
setQuiet(boolean quiet) |
void |
setRemovePackFile(boolean removePackFile)
If removePackFile is set to true, the input file is deleted after unpacking.
|
void |
setVerbose(boolean verbose) |
void |
unpack()
Unpacks the Archive from the input file to the output file
|
public Archive(java.lang.String inputFile, java.lang.String outputFile) throws java.io.FileNotFoundException, java.io.IOException
inputFile
- TODOoutputFile
- TODOjava.io.FileNotFoundException
- if the input file does not existjava.io.FileNotFoundException
- TODOjava.io.IOException
- TODOpublic Archive(java.io.InputStream inputStream, java.util.jar.JarOutputStream outputStream) throws java.io.IOException
setRemovePackFile(boolean)
will have no effect.inputStream
- TODOoutputStream
- TODOjava.io.IOException
- TODOpublic void unpack() throws Pack200Exception, java.io.IOException
Pack200Exception
- TODOjava.io.IOException
- TODOpublic void setRemovePackFile(boolean removePackFile)
removePackFile
- If true, the input file is deleted after unpacking.public void setVerbose(boolean verbose)
public void setQuiet(boolean quiet)
public void setLogFile(java.lang.String logFileName) throws java.io.FileNotFoundException
java.io.FileNotFoundException
public void setLogFile(java.lang.String logFileName, boolean append) throws java.io.FileNotFoundException
java.io.FileNotFoundException
public void setDeflateHint(boolean deflateHint)