The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

Compress::LZW::Decompressor - Scaling LZW decompressor class

VERSION

version 0.03

SYNOPSIS

 use Compress::LZW::Decompressor;
  
 my $d    = Compress::LZW::Decompressor->new();
 my $orig = $d->decompress( $lzw );

ATTRIBUTES

lsb_first

Default: Dectected through Config.pm / byteorder

True if bit 0 is the least significant in this environment. Not well-tested, but intended to change some internal behavior to match compress(1) output on MSB-zero platforms.

Needs to match the value used during compression, if data is passing across CPU architectures.

init_code_size

Default: 9

After the first three header bytes, input codes are expected tobegin at this size. This is not stored in the resulting stream, so if this was altered from default at compression, you must supply the same value here.

May be between 9 and 31, inclusive. An exception will be raised in decompress if this value is already higher than the given stream's declared maximum code size.

METHODS

decompress ( $input )

Decompress $input with the current settings and returns the result.

reset ()

Resets the decompressor state for another round of input. Automatically called at the beginning of ->decompress.

Resets the following internal state: code table, next code number, code size, output buffer

AUTHOR

Meredith Howard <mhoward@cpan.org>

COPYRIGHT AND LICENSE

This software is copyright (c) 2013 by Meredith Howard.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.