1POE::Filter::Zlib(3)  User Contributed Perl Documentation POE::Filter::Zlib(3)
2
3
4

NAME

6       POE::Filter::Zlib -- A POE filter wrapped around Compress::Zlib
7

SYNOPSIS

9           use POE::Filter::Zlib;
10
11           my $filter = POE::Filter::Zlib->new();
12           my $scalar = 'Blah Blah Blah';
13           my $compressed_array   = $filter->put( [ $scalar ] );
14           my $uncompressed_array = $filter->get( $compressed_array );
15
16           use POE qw(Filter::Stackable Filter::Line Filter::Zlib);
17
18           my ($filter) = POE::Filter::Stackable->new();
19           $filter->push( POE::Filter::Zlib->new(),
20                          POE::Filter::Line->new( InputRegexp => '\015?\012', OutputLiteral => "\015\012" ),
21

DESCRIPTION

23       POE::Filter::Zlib provides a POE filter for performing compres‐
24       sion/uncompression using Compress::Zlib. It is suitable for use with
25       POE::Filter::Stackable.
26
27       This filter is not ideal for streaming compressed data over sockets
28       etc. as it employs compress and uncompress zlib functions.
29
30       POE::Filter::Zlib::Stream is recommended for that type of activity.
31

CONSTRUCTOR

33       new Creates a new POE::Filter::Zlib object. Takes one optional argu‐
34           ment,
35
36             'level': the level of compression to employ.
37
38           Consult Compress::Zlib for details.
39

METHODS

41       get
42       get_one_start
43       get_one
44           Takes an arrayref which is contains lines of compressed input.
45           Returns an arrayref of uncompressed lines.
46
47       put Takes an arrayref containing lines of uncompressed output, returns
48           an arrayref of compressed lines.
49
50       level
51           Sets the level of compression employed to the given value. If no
52           value is supplied, returns the current level setting.
53

AUTHOR

55       Chris Williams <chris@bingosnet.co.uk>
56

SEE ALSO

58       POE
59
60       POE::Filter
61
62       POE::Filter::Zlib::Stream
63
64       Compress::Zlib
65
66       POE::Filter::Stackable
67
68
69
70perl v5.8.8                       2006-11-21              POE::Filter::Zlib(3)
Impressum