| Constructor and Description |
|---|
Archive(InputStream inputStream,
JarOutputStream outputStream)
Creates an Archive with streams for the input and output files.
|
Archive(String inputFile,
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(String logFileName) |
void |
setLogFile(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(InputStream inputStream, JarOutputStream outputStream)
setRemovePackFile(boolean) will have no effect.inputStream - TODOoutputStream - TODOpublic Archive(String inputFile, String outputFile) throws FileNotFoundException, IOException
inputFile - TODOoutputFile - TODOFileNotFoundException - if the input file does not existFileNotFoundException - TODOIOException - TODOpublic void setDeflateHint(boolean deflateHint)
public void setLogFile(String logFileName) throws FileNotFoundException
FileNotFoundExceptionpublic void setLogFile(String logFileName, boolean append) throws FileNotFoundException
FileNotFoundExceptionpublic void setQuiet(boolean quiet)
public void setRemovePackFile(boolean removePackFile)
removePackFile - If true, the input file is deleted after unpacking.public void setVerbose(boolean verbose)
public void unpack() throws Pack200Exception, IOException
Pack200Exception - TODOIOException - TODOCopyright © 2002–2022 The Apache Software Foundation. All rights reserved.