| Modifier and Type | Field and Description |
|---|---|
| private final XZOutputStream |
| Access | Constructor and Description |
|---|---|
| public | XZCompressorOutputStream(final OutputStream
the stream to wrap outputStream)Creates a new XZ compressor using the default LZMA2 options. |
| public | XZCompressorOutputStream(final OutputStream
the stream to wrap outputStream, final int the preset preset)Creates a new XZ compressor using the specified LZMA2 preset level. |
| Modifier and Type | Method and Description |
|---|---|
| public void | close()
Overrides java. Implements java. |
| public void | |
| public void | flush()
Overrides java. Implements java. outputStream.flush().
|
| public void | write(final byte[]
the data. buf, final int the start offset in the data. off, final int the number of bytes to write. len)Overrides java. len bytes from the specified byte array
starting at offset off to this output stream.
|
| public void | write(final int
the b)byte.Implements abstract java. |
| out | back to summary |
|---|---|
| private final XZOutputStream out | |
| XZCompressorOutputStream | back to summary |
|---|---|
| public XZCompressorOutputStream(final OutputStream outputStream) throws IOException Creates a new XZ compressor using the default LZMA2 options. This is equivalent to
| |
| XZCompressorOutputStream | back to summary |
|---|---|
| public XZCompressorOutputStream(final OutputStream outputStream, final int preset) throws IOException Creates a new XZ compressor using the specified LZMA2 preset level. The presets 0-3 are fast presets with medium compression. The presets 4-6 are fairly slow presets with high compression. The default preset is 6. The presets 7-9 are like the preset 6 but use bigger dictionaries and have higher compressor and decompressor memory requirements. Unless the uncompressed size of the file exceeds 8 MiB, 16 MiB, or 32 MiB, it is waste of memory to use the presets 7, 8, or 9, respectively.
| |
| close | back to summary |
|---|---|
| public void close() throws IOException Overrides java. Implements java. Doc from java. Closes this output stream and releases any system resources
associated with this stream. The general contract of
| |
| finish | back to summary |
|---|---|
| public void finish() throws IOException Finishes compression without closing the underlying stream. No more data can be written to this stream after finishing.
| |
| flush | back to summary |
|---|---|
| public void flush() throws IOException Overrides java. Implements java. Flushes the encoder and calls
| |
| write | back to summary |
|---|---|
| public void write(final byte[] buf, final int off, final int len) throws IOException Overrides java. Doc from java. Writes
If
If
| |
| write | back to summary |
|---|---|
| public void write(final int b) throws IOException Implements abstract java. Doc from java. Writes the specified byte to this output stream. The general
contract for
| |