Class LZFOutputStream

All Implemented Interfaces:
Closeable, Flushable, AutoCloseable, Channel, WritableByteChannel

public class LZFOutputStream extends FilterOutputStream implements WritableByteChannel
Decorator OutputStream implementation that will compress output using LZF compression algorithm, given uncompressed input to write. Its counterpart is LZFInputStream; although in some ways LZFCompressingInputStream can be seen as the opposite.
See Also:
  • Field Details

    • DEFAULT_OUTPUT_BUFFER_SIZE

      private static final int DEFAULT_OUTPUT_BUFFER_SIZE
      See Also:
    • _encoder

      private final ChunkEncoder _encoder
    • _recycler

      private final BufferRecycler _recycler
    • _outputBuffer

      protected byte[] _outputBuffer
    • _position

      protected int _position
    • _cfgFinishBlockOnFlush

      protected boolean _cfgFinishBlockOnFlush
      Configuration setting that governs whether basic 'flush()' should first complete a block or not.

      Default value is 'true'

    • _outputStreamClosed

      protected boolean _outputStreamClosed
      Flag that indicates if we have already called '_outputStream.close()' (to avoid calling it multiple times)
  • Constructor Details

  • Method Details