Class: LZWS::Stream::Raw::Compressor

Inherits:
ADSP::Stream::Raw::Compressor
  • Object
show all
Defined in:
lib/lzws/stream/raw/compressor.rb

Overview

LZWS::Stream::Raw::Compressor class.

Constant Summary collapse

NativeCompressor =

Current native compressor class.

Stream::NativeCompressor
Option =

Current option class.

LZWS::Option

Instance Method Summary collapse

Instance Method Details

#flush(&writer) ⇒ Object

Flushes raw stream and writes next result using writer proc.



22
23
24
25
26
27
28
29
30
# File 'lib/lzws/stream/raw/compressor.rb', line 22

def flush(&writer)
  do_not_use_after_close

  Validation.validate_proc writer

  write_result(&writer)

  nil
end