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.
Author:
jon hartlaub, Tatu Saloranta
See Also:
  • Field Details

    • _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