Click or drag to resize
LZW Methods

The LZW type exposes the following members.

Methods
  NameDescription
Public methodCompress
Reads a sequence of 8-bit bytes from standard input; compresses them using LZW compression with 12-bit codewords; and writes the results to standard output.
Public methodExpand
Reads a sequence of bit encoded using LZW compression with 12-bit codewords from standard input; expands them; and writes the results to standard output.
Public methodStatic memberMainTest
Sample client that calls compress() if the command-line argument is "-" an expand() if it is "+".
Top
See Also