| Modifier and Type | Field and Description |
|---|---|
| private final byte[] | |
| private final CompressLZF | |
| pack-priv static final int | MAGIC
The file header of a LZF file. |
| private final OutputStream | |
| private byte[] | |
| private int |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | close()
Overrides java. Implements java. Closes this output stream and releases any system resources associated with this stream. |
| private void | |
| private void | |
| public void | flush()
Overrides java. Implements java. Flushes this output stream and forces any buffered output bytes to be written out. |
| public void | write(int
the b)byte.Implements abstract java. Writes the specified byte to this output stream. |
| public void | write(byte[]
the data. buff, int the start offset in the data. off, int the number of bytes to write. len)Overrides java. Writes |
| private void |
| buffer | back to summary |
|---|---|
| private final byte[] buffer | |
| compress | back to summary |
|---|---|
| private final CompressLZF compress | |
| MAGIC | back to summary |
|---|---|
| pack-priv static final int MAGIC The file header of a LZF file. | |
| out | back to summary |
|---|---|
| private final OutputStream out | |
| outBuffer | back to summary |
|---|---|
| private byte[] outBuffer | |
| pos | back to summary |
|---|---|
| private int pos | |
| LZFOutputStream | back to summary |
|---|---|
| public LZFOutputStream(OutputStream out) throws IOException | |
| 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
| |
| compressAndWrite | back to summary |
|---|---|
| private void compressAndWrite(byte[] buff, int len) throws IOException | |
| ensureOutput | back to summary |
|---|---|
| private void ensureOutput(int len) | |
| flush | back to summary |
|---|---|
| public void flush() throws IOException Overrides java. Implements java. Doc from java. Flushes this output stream and forces any buffered output bytes
to be written out. The general contract of If the intended destination of this stream is an abstraction provided by the underlying operating system, for example a file, then flushing the stream guarantees only that bytes previously written to the stream are passed to the operating system for writing; it does not guarantee that they are actually written to a physical device such as a disk drive.
| |
| write | back to summary |
|---|---|
| public void write(int b) throws IOException Implements abstract java. Doc from java. Writes the specified byte to this output stream. The general
contract for
| |
| write | back to summary |
|---|---|
| public void write(byte[] buff, int off, int len) throws IOException Overrides java. Doc from java. Writes
If
If
| |
| writeInt | back to summary |
|---|---|
| private void writeInt(int x) throws IOException | |