unpack() is called, to unpack the pack200 archive.
| Modifier and Type | Field and Description |
|---|---|
| private boolean | |
| private final Path | |
| private final long | |
| private BoundedInputStream | |
| private FileOutputStream | |
| private int | |
| private static final int[] | |
| private String | |
| private final JarOutputStream | |
| private boolean | |
| private boolean |
| Access | Constructor and Description |
|---|---|
| public | Archive(final InputStream
the input stream, preferably a inputStream, final JarOutputStream BoundedInputStream. The bound can the the file size.the JAR output stream. outputStream)Creates an Archive with streams for the input and output files. |
| public |
| Modifier and Type | Method and Description |
|---|---|
| private boolean | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | setRemovePackFile(final boolean
If true, the input file is deleted after unpacking. removePackFile)If removePackFile is set to true, the input file is deleted after unpacking. |
| public void | |
| public void |
| deflateHint | back to summary |
|---|---|
| private boolean deflateHint | |
| inputPath | back to summary |
|---|---|
| private final Path inputPath | |
| inputSize | back to summary |
|---|---|
| private final long inputSize | |
| inputStream | back to summary |
|---|---|
| private BoundedInputStream inputStream | |
| logFile | back to summary |
|---|---|
| private FileOutputStream logFile | |
| logLevel | back to summary |
|---|---|
| private int logLevel | |
| MAGIC | back to summary |
|---|---|
| private static final int[] MAGIC | |
| outputFileName | back to summary |
|---|---|
| private String outputFileName | |
| outputStream | back to summary |
|---|---|
| private final JarOutputStream outputStream | |
| overrideDeflateHint | back to summary |
|---|---|
| private boolean overrideDeflateHint | |
| removePackFile | back to summary |
|---|---|
| private boolean removePackFile | |
| Archive | back to summary |
|---|---|
| public Archive(final InputStream inputStream, final JarOutputStream outputStream) throws IOException Creates an Archive with streams for the input and output files. Note If you use this method then calling
| |
| Archive | back to summary |
|---|---|
| public Archive(final String inputFileName, final String outputFileName) throws FileNotFoundException, IOException Creates an Archive with the given input and output file names.
| |
| available | back to summary |
|---|---|
| private boolean available(final InputStream inputStream) throws IOException | |
| setDeflateHint | back to summary |
|---|---|
| public void setDeflateHint(final boolean deflateHint) | |
| setLogFile | back to summary |
|---|---|
| public void setLogFile(final String logFileName) throws FileNotFoundException | |
| setLogFile | back to summary |
|---|---|
| public void setLogFile(final String logFileName, final boolean append) throws FileNotFoundException | |
| setQuiet | back to summary |
|---|---|
| public void setQuiet(final boolean quiet) | |
| setRemovePackFile | back to summary |
|---|---|
| public void setRemovePackFile(final boolean removePackFile) If removePackFile is set to true, the input file is deleted after unpacking.
| |
| setVerbose | back to summary |
|---|---|
| public void setVerbose(final boolean verbose) | |
| unpack | back to summary |
|---|---|
| public void unpack() throws Pack200Exception, IOException Unpacks the Archive from the input file to the output file
| |