NAME

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

VERSION

version 0.02

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.

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 need to supply the same value here.

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: 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.