1Compress::Bzip2(3) User Contributed Perl Documentation Compress::Bzip2(3)
2
3
4
6 Compress::Bzip2 - Interface to Bzip2 compression library
7
9 use Compress::Bzip2 qw(:all :constant :utilities :gzip);
10
11 ($bz, $status) = bzdeflateInit( [PARAMS] ) ;
12 ($out, $status) = $bz->bzdeflate($buffer) ;
13
14 ($bz, $status) = bzinflateInit( [PARAMS] ) ;
15 ($out, $status) = $bz->bzinflate($buffer) ;
16
17 ($out, $status) = $bz->bzflush() ;
18 ($out, $status) = $bz->bzclose() ;
19
20 $dest = memBzip($source);
21 alias compress
22 $dest = memBunzip($source);
23 alias decompress
24
25 $bz = Compress::Bzip2->new( [PARAMS] );
26
27 $bz = bzopen($filename or filehandle, $mode);
28 alternate, with $bz created by new():
29 $bz->bzopen($filename or filehandle, $mode);
30
31 $bytesread = $bz->bzread($buffer [,$size]) ;
32 $bytesread = $bz->bzreadline($line);
33 $byteswritten = $bz->bzwrite($buffer [,$limit]);
34 $errstring = $bz->bzerror();
35 $status = $bz->bzeof();
36 $status = $bz->bzflush();
37 $status = $bz->bzclose() ;
38
39 $status = $bz->bzsetparams( $param => $setting );
40
41 $bz->total_in() ;
42 $bz->total_out() ;
43
44 $verstring = $bz->bzversion();
45
46 $Compress::Bzip2::bzerrno
47
49 The Compress::Bzip2 module provides a Perl interface to the Bzip2 com‐
50 pression library (see "AUTHOR" for details about where to get Bzip2). A
51 relevant subset of the functionality provided by Bzip2 is available in
52 Compress::Bzip2.
53
54 All string parameters can either be a scalar or a scalar reference.
55
56 The module can be split into two general areas of functionality, namely
57 in-memory compression/decompression and read/write access to bzip2
58 files. Each of these areas will be discussed separately below.
59
61 A number of functions are supplied in bzlib for reading and writing
62 bzip2 files. Unfortunately, most of them are not suitable. So, this
63 module provides another interface, built over top of the low level
64 bzlib methods.
65
66 $bz = bzopen(filename or filehandle, mode)
67
68 This function returns an object which is used to access the other
69 bzip2 methods.
70
71 The mode parameter is used to specify both whether the file is
72 opened for reading or writing, with "r" or "w" respectively.
73
74 If a reference to an open filehandle is passed in place of the
75 filename, it better be positioned to the start of a compres‐
76 sion/decompression sequence.
77
78 $bz = Compress::Bzip2->new( [PARAMS] )
79
80 Create a Compress::Bzip2 object. Optionally, provide compres‐
81 sion/decompression parameters as a keyword => setting list. See
82 bzsetparams() for a description of the parameters.
83
84 $bz->bzopen(filename or filehandle, mode)
85
86 This is bzopen, but it uses an object previously created by the
87 new method. Other than that, it is identical to the above bzopen.
88
89 $bytesread = $bz->bzread($buffer [, $size]) ;
90
91 Reads $size bytes from the compressed file into $buffer. If $size
92 is not specified, it will default to 4096. If the scalar $buffer
93 is not large enough, it will be extended automatically.
94
95 Returns the number of bytes actually read. On EOF it returns 0 and
96 in the case of an error, -1.
97
98 $bytesread = $bz->bzreadline($line) ;
99
100 Reads the next line from the compressed file into $line.
101
102 Returns the number of bytes actually read. On EOF it returns 0 and
103 in the case of an error, -1.
104
105 It IS legal to intermix calls to bzread and bzreadline.
106
107 At this time bzreadline ignores the variable $/
108 ($INPUT_RECORD_SEPARATOR or $RS when "English" is in use). The end
109 of a line is denoted by the C character '\n'.
110
111 $byteswritten = $bz->bzwrite($buffer [, $limit]) ;
112
113 Writes the contents of $buffer to the compressed file. Returns the
114 number of bytes actually written, or 0 on error.
115
116 If $limit is given and non-zero, then only that many bytes from
117 $buffer will be written.
118
119 $status = $bz->bzflush($flush) ;
120
121 Flushes all pending output to the compressed file. Works identi‐
122 cally to the zlib function it interfaces to. Note that the use of
123 bzflush can degrade compression.
124
125 Returns "BZ_OK" if $flush is "BZ_FINISH" and all output could be
126 flushed. Otherwise the bzlib error code is returned.
127
128 Refer to the bzlib documentation for the valid values of $flush.
129
130 $status = $bz->bzeof() ;
131
132 Returns 1 if the end of file has been detected while reading the
133 input file, otherwise returns 0.
134
135 $bz->bzclose
136
137 Closes the compressed file. Any pending data is flushed to the
138 file before it is closed.
139
140 $bz->bzsetparams( [PARAMS] );
141
142 Change settings for the deflate stream $bz.
143
144 The list of the valid options is shown below. Options not speci‐
145 fied will remain unchanged.
146
147 -verbosity
148 Defines the verbosity level. Valid values are 0 through 4,
149
150 The default is "-verbosity => 0".
151
152 -blockSize100k
153 For bzip object opened for stream deflation or write.
154
155 Defines the buffering factor of compression method. The
156 algorithm buffers all data until the buffer is full, then it
157 flushes all the data out. Use -blockSize100k to specify the
158 size of the buffer.
159
160 Valid settings are 1 through 9, representing a blocking in
161 multiples of 100k.
162
163 Note that each such block has an overhead of leading and
164 trailing synchronization bytes. bzip2 recovery uses this
165 information to pull useable data out of a corrupted file.
166
167 A streaming application would probably want to set the block‐
168 ing low.
169
170 -workFactor
171 For bzip object opened for stream deflation or write.
172
173 The workFactor setting tells the deflation algorithm how much
174 work to invest to compensate for repetitive data.
175
176 workFactor may be a number from 0 to 250 inclusive. The
177 default setting is 30.
178
179 See the bzip documentation for more information.
180
181 -small
182 For bzip object opened for stream inflation or read.
183
184 small may be 0 or 1. Set "small" to one to use a slower,
185 less memory intensive algorithm.
186
187 $bz->bzerror
188
189 Returns the bzlib error message or number for the last operation
190 associated with $bz. The return value will be the bzlib error num‐
191 ber when used in a numeric context and the bzlib error message
192 when used in a string context. The bzlib error number constants,
193 shown below, are available for use.
194
195 BZ_CONFIG_ERROR
196 BZ_DATA_ERROR
197 BZ_DATA_ERROR_MAGIC
198 BZ_FINISH
199 BZ_FINISH_OK
200 BZ_FLUSH
201 BZ_FLUSH_OK
202 BZ_IO_ERROR
203 BZ_MAX_UNUSED
204 BZ_MEM_ERROR
205 BZ_OK
206 BZ_OUTBUFF_FULL
207 BZ_PARAM_ERROR
208 BZ_RUN
209 BZ_RUN_OK
210 BZ_SEQUENCE_ERROR
211 BZ_STREAM_END
212 BZ_UNEXPECTED_EOF
213
214 $bzerrno
215
216 The $bzerrno scalar holds the error code associated with the most
217 recent bzip2 routine. Note that unlike bzerror(), the error is not
218 associated with a particular file.
219
220 As with bzerror() it returns an error number in numeric context
221 and an error message in string context. Unlike bzerror() though,
222 the error message will correspond to the bzlib message when the
223 error is associated with bzlib itself, or the UNIX error message
224 when it is not (i.e. bzlib returned "Z_ERRORNO").
225
226 As there is an overlap between the error numbers used by bzlib and
227 UNIX, $bzerrno should only be used to check for the presence of an
228 error in numeric context. Use bzerror() to check for specific
229 bzlib errors. The bzcat example below shows how the variable can
230 be used safely.
231
233 While the 2.x thread forked off of 1.00, another line of development
234 came to a head at 1.03. The 1.03 version worked with bzlib 1.0.2, had
235 improvements to the error handling, single buffer inflate/deflate, a
236 streaming interface to inflate/deflate, and a cpan style test suite.
237
238 $dest = compress( $string, [$level] )
239
240 Alias to memBzip, this compresses string, using the optional com‐
241 pression level, 1 through 9, the default being 1. Returns a
242 string containing the compressed data.
243
244 On error undef is returned.
245
246 $dest = decompress($string)
247
248 Alias to memBunzip, this decompresses the data in string, return‐
249 ing a string containing the decompressed data.
250
251 On error undef is returned.
252
253 $stream = compress_init( [PARAMS] )
254
255 Alias to bzdeflateInit. In addition to the named parameters docu‐
256 mented for bzdeflateInit, the following are accepted:
257
258 -level, alias to -blockSize100k
259 -buffer, to set the buffer size.
260
261 The -buffer option is ignored. The intermediate buffer size is
262 not changeable.
263
264 $stream = decompress_init( [PARAMS] )
265
266 Alias to bzinflateInit. See bzinflateInit for a description of
267 the parameters. The option "-buffer" is accepted, but ignored.
268
269 $output = $stream->add( $string )
270
271 Add data to be compressed/decompressed. Returns whatever output
272 is available (possibly none, if it's still buffering it), or undef
273 on error.
274
275 $output = $stream->finish( [$string] )
276
277 Finish the operation; takes an optional final data string. What‐
278 ever is returned completes the output; returns undef on error.
279
280 $stream->error
281
282 Like the function, but applies to the current object only. Note
283 that errors in a stream object are also returned by the function.
284
285 $stream->input_size
286
287 Alias to total_in. Total bytes passed to the stream.
288
289 $stream->output_size
290
291 Alias to total_out. Total bytes received from the stream.
292
294 Except for the exact state and error numbers, this package presents an
295 interface very much like that given by the Compress::Zlib package.
296 Mostly, if you take the method name, state or error number from Com‐
297 press::Zlib and replace the "g" with a "b", your code should work.
298
299 To make the interoperability even easier, all the Compress::Zlib method
300 names have been used as aliases or cover functions for the bzip2 meth‐
301 ods.
302
303 Therefore, most code that uses Compress::Zlib should be able to use
304 this package, with a one line change.
305
306 Simply change
307
308 $gz = Compress::Zlib::gzopen( "filename", "w" );
309
310 to
311
312 $gz = Compress::Bzip2::gzopen( "filename", "w" );
313
314 Some of the Compress::Zlib aliases don't return anything useful, like
315 crc32 or adler32, cause bzip2 doesn't do that sort of thing.
316
317 $gz = gzopen( $filename, $mode )
318
319 Alias for bzopen.
320
321 $gz->gzread( $buffer, [ $length ] )
322
323 Alias for bzread.
324
325 $gz->gzreadline( $buffer )
326
327 Alias for bzreadline.
328
329 $gz->gzwrite( $buffer )
330
331 Alias for bzwrite.
332
333 $gz->gzflush( [$flushtype] )
334
335 Alias for bzflush, with return code translation.
336
337 $gz->gzclose( )
338
339 Alias for bzclose.
340
341 $gz->gzeof( )
342
343 Alias for bzeof.
344
345 $gz->gzerror( )
346
347 Alias for bzerror.
348
349 $gz->gzsetparams( $level, $strategy )
350
351 This is a no-op.
352
353 $d = deflateInit( [OPTS] )
354
355 Alias for bzdeflateInit, with return code translation.
356
357 All OPTS are ignored.
358
359 $d->deflate( $buffer )
360
361 Alias for bzdeflate, with return code translation.
362
363 $d->deflateParams( [OPTS] )
364
365 This is a no-op.
366
367 $d->flush( [$flushtype] )
368
369 Cover function for bzflush or bzclose, depending on $flushtype.
370
371 See the Compress::Zlib documentation for more information.
372
373 $d->dict_adler( )
374
375 This is a no-op.
376
377 $d->msg( )
378
379 This is a no-op.
380
381 $d = inflateInit( [OPTS] )
382
383 Alias for bzinflateInit, with return code translation.
384
385 All OPTS are ignored.
386
387 $d->inflate( )
388
389 Alias for bzinflate, with return code translation.
390
391 $d->inflateSync( )
392
393 This is a no-op.
394
395 $d->adler32( $crc )
396
397 This is a no-op.
398
399 $d->crc32( $crc )
400
401 This is a no-op.
402
403 $buffer = memGzip( $buffer )
404
405 Alias for memBzip.
406
407 $buffer = memGunzip( $buffer )
408
409 Alias for memBunzip.
410
412 Two high-level functions are provided by bzlib to perform in-memory
413 compression. They are memBzip and memBunzip. Two Perl subs are provided
414 which provide similar functionality.
415
416 $compressed = memBzip($buffer);
417
418 Compresses $source. If successful it returns the compressed data.
419 Otherwise it returns undef.
420
421 The buffer parameter can either be a scalar or a scalar reference.
422
423 Essentially, an in-memory bzip file is created. It creates a mini‐
424 mal bzip header.
425
426 $uncompressed = memBunzip($buffer);
427
428 Uncompresses $source. If successful it returns the uncompressed
429 data. Otherwise it returns undef.
430
431 The source buffer can either be a scalar or a scalar reference.
432
433 The buffer parameter can either be a scalar or a scalar reference.
434 The contents of the buffer parameter are destroyed after calling
435 this function.
436
438 The Perl interface will always consume the complete input buffer before
439 returning. Also the output buffer returned will be automatically grown
440 to fit the amount of output available.
441
442 Here is a definition of the interface available:
443
444 ($d, $status) = bzdeflateInit( [PARAMS] )
445
446 Initialises a deflation stream.
447
448 If successful, it will return the initialised deflation stream, $d and
449 $status of "BZ_OK" in a list context. In scalar context it returns the
450 deflation stream, $d, only.
451
452 If not successful, the returned deflation stream ($d) will be undef and
453 $status will hold the exact bzip2 error code.
454
455 The function optionally takes a number of named options specified as
456 "-Name=>value" pairs. This allows individual options to be tailored
457 without having to specify them all in the parameter list.
458
459 Here is a list of the valid options:
460
461 -verbosity
462 Defines the verbosity level. Valid values are 0 through 4,
463
464 The default is "-verbosity => 0".
465
466 -blockSize100k
467 Defines the buffering factor of compression method. The algorithm
468 buffers all data until the buffer is full, then it flushes all the
469 data out. Use -blockSize100k to specify the size of the buffer.
470
471 Valid settings are 1 through 9, representing a blocking in multi‐
472 ples of 100k.
473
474 Note that each such block has an overhead of leading and trailing
475 synchronization bytes. bzip2 recovery uses this information to
476 pull useable data out of a corrupted file.
477
478 A streaming application would probably want to set the blocking
479 low.
480
481 -workFactor
482 The workFactor setting tells the deflation algorithm how much work
483 to invest to compensate for repetitive data.
484
485 workFactor may be a number from 0 to 250 inclusive. The default
486 setting is 30.
487
488 See the bzip documentation for more information.
489
490 Here is an example of using the deflateInit optional parameter list to
491 override the default buffer size and compression level. All other
492 options will take their default values.
493
494 bzdeflateInit( -blockSize100k => 1, -verbosity => 1 );
495
496 ($out, $status) = $d->bzdeflate($buffer)
497
498 Deflates the contents of $buffer. The buffer can either be a scalar or
499 a scalar reference. When finished, $buffer will be completely pro‐
500 cessed (assuming there were no errors). If the deflation was successful
501 it returns deflated output, $out, and a status value, $status, of
502 "Z_OK".
503
504 On error, $out will be undef and $status will contain the zlib error
505 code.
506
507 In a scalar context bzdeflate will return $out only.
508
509 As with the internal buffering of the deflate function in bzip2, it is
510 not necessarily the case that any output will be produced by this
511 method. So don't rely on the fact that $out is empty for an error test.
512 In fact, given the size of bzdeflates internal buffer, with most files
513 it's likely you won't see any output at all until flush or close.
514
515 ($out, $status) = $d->bzflush([flush_type])
516
517 Typically used to finish the deflation. Any pending output will be
518 returned via $out. $status will have a value "BZ_OK" if successful.
519
520 In a scalar context bzflush will return $out only.
521
522 Note that flushing can seriously degrade the compression ratio, so it
523 should only be used to terminate a decompression (using "BZ_FLUSH") or
524 when you want to create a full flush point (using "BZ_FINISH").
525
526 The allowable values for "flush_type" are "BZ_FLUSH" and "BZ_FINISH".
527
528 For a handle opened for "w" (bzwrite), the default is "BZ_FLUSH". For
529 a stream, the default for "flush_type" is "BZ_FINISH" (which is essen‐
530 tially a close and reopen).
531
532 It is strongly recommended that you only set the "flush_type" parameter
533 if you fully understand the implications of what it does. See the
534 "bzip2" documentation for details.
535
536 Example
537
538 Here is a trivial example of using bzdeflate. It simply reads standard
539 input, deflates it and writes it to standard output.
540
541 use strict ;
542 use warnings ;
543
544 use Compress::Bzip2 ;
545
546 binmode STDIN;
547 binmode STDOUT;
548 my $x = bzdeflateInit()
549 or die "Cannot create a deflation stream\n" ;
550
551 my ($output, $status) ;
552 while (<>)
553 {
554 ($output, $status) = $x->bzdeflate($_) ;
555
556 $status == BZ_OK
557 or die "deflation failed\n" ;
558
559 print $output ;
560 }
561
562 ($output, $status) = $x->bzclose() ;
563
564 $status == BZ_OK
565 or die "deflation failed\n" ;
566
567 print $output ;
568
570 Here is a definition of the interface:
571
572 ($i, $status) = inflateInit()
573
574 Initialises an inflation stream.
575
576 In a list context it returns the inflation stream, $i, and the zlib
577 status code ($status). In a scalar context it returns the inflation
578 stream only.
579
580 If successful, $i will hold the inflation stream and $status will be
581 "BZ_OK".
582
583 If not successful, $i will be undef and $status will hold the bzlib.h
584 error code.
585
586 The function optionally takes a number of named options specified as
587 "-Name=>value" pairs. This allows individual options to be tailored
588 without having to specify them all in the parameter list.
589
590 For backward compatibility, it is also possible to pass the parameters
591 as a reference to a hash containing the name=>value pairs.
592
593 The function takes one optional parameter, a reference to a hash. The
594 contents of the hash allow the deflation interface to be tailored.
595
596 Here is a list of the valid options:
597
598 -small
599 small may be 0 or 1. Set "small" to one to use a slower, less
600 memory intensive algorithm.
601
602 -verbosity
603 Defines the verbosity level. Valid values are 0 through 4,
604
605 The default is "-verbosity => 0".
606
607 Here is an example of using the bzinflateInit optional parameter.
608
609 bzinflateInit( -small => 1, -verbosity => 1 );
610
611 ($out, $status) = $i->bzinflate($buffer)
612
613 Inflates the complete contents of $buffer. The buffer can either be a
614 scalar or a scalar reference.
615
616 Returns "BZ_OK" if successful and "BZ_STREAM_END" if the end of the
617 compressed data has been successfully reached. If not successful, $out
618 will be undef and $status will hold the bzlib error code.
619
620 The $buffer parameter is modified by "bzinflate". On completion it will
621 contain what remains of the input buffer after inflation. This means
622 that $buffer will be an empty string when the return status is "BZ_OK".
623 When the return status is "BZ_STREAM_END" the $buffer parameter will
624 contains what (if anything) was stored in the input buffer after the
625 deflated data stream.
626
627 This feature is useful when processing a file format that encapsulates
628 a compressed data stream.
629
630 Example
631
632 Here is an example of using bzinflate.
633
634 use strict ;
635 use warnings ;
636
637 use Compress::Bzip2;
638
639 my $x = bzinflateInit()
640 or die "Cannot create a inflation stream\n" ;
641
642 my $input = '' ;
643 binmode STDIN;
644 binmode STDOUT;
645
646 my ($output, $status) ;
647 while (read(STDIN, $input, 4096))
648 {
649 ($output, $status) = $x->bzinflate(\$input) ;
650
651 print $output
652 if $status == BZ_OK or $status == BZ_STREAM_END ;
653
654 last if $status != BZ_OK ;
655 }
656
657 die "inflation failed\n"
658 unless $status == BZ_STREAM_END ;
659
661 Here are some example scripts of using the interface.
662
663 A bzcat function
664
665 use strict ;
666 use warnings ;
667
668 use Compress::Bzip2 ;
669
670 die "Usage: bzcat file...\n" unless @ARGV ;
671
672 my $file ;
673
674 foreach $file (@ARGV) {
675 my $buffer ;
676
677 my $bz = bzopen($file, "rb")
678 or die "Cannot open $file: $bzerrno\n" ;
679
680 print $buffer while $bz->bzread($buffer) > 0 ;
681
682 die "Error reading from $file: $bzerrno" . ($bzerrno+0) . "\n"
683 if $bzerrno != BZ_STREAM_END ;
684
685 $bz->bzclose() ;
686 }
687
688 A grep using bzreadline
689
690 use strict ;
691 use warnings ;
692
693 use Compress::Bzip2 ;
694
695 die "Usage: bzgrep pattern file...\n" unless @ARGV >= 2;
696
697 my $pattern = shift ;
698
699 my $file ;
700
701 foreach $file (@ARGV) {
702 my $bz = bzopen($file, "rb")
703 or die "Cannot open $file: $bzerrno\n" ;
704
705 while ($bz->bzreadline($_) > 0) {
706 print if /$pattern/ ;
707 }
708
709 die "Error reading from $file: $bzerrno\n"
710 if $bzerrno != Z_STREAM_END ;
711
712 $bz->bzclose() ;
713 }
714
715 Streaming Compression
716
717 This script, bzstream, does the opposite of the bzcat script
718 above. It reads from standard input and writes a bzip file to
719 standard output.
720
721 use strict ;
722 use warnings ;
723
724 use Compress::Bzip2 ;
725
726 binmode STDOUT; # bzopen only sets it on the fd
727
728 my $bz = bzopen(\*STDOUT, "wb")
729 or die "Cannot open stdout: $bzerrno\n" ;
730
731 while (<>) {
732 $bz->bzwrite($_) or die "error writing: $bzerrno\n" ;
733 }
734
735 $bz->bzclose ;
736
738 Use the tags :all, :utilities, :constants, :bzip1 and :gzip.
739
740 Export tag :all
741
742 This exports all the exportable methods.
743
744 Export tag :constants
745
746 This exports only the BZ_* constants.
747
748 Export tag :bzip1
749
750 This exports the Compress::Bzip2 1.x functions, for compatibility.
751
752 compress
753 decompress
754 compress_init
755 decompress_init
756 version
757
758 These are actually aliases to memBzip and memBunzip.
759
760 Export tag :utilities
761
762 This gives an interface to the bzip2 methods.
763
764 bzopen
765 bzinflateInit
766 bzdeflateInit
767 memBzip
768 memBunzip
769 bzip2
770 bunzip2
771 bzcat
772 bzlibversion
773 $bzerrno
774
775 Export tag :gzip
776
777 This gives compatibility with Compress::Zlib.
778
779 gzopen
780 gzinflateInit
781 gzdeflateInit
782 memGzip
783 memGunzip
784 $gzerrno
785
787 All the bzlib constants are automatically imported when you make use of
788 Compress::Bzip2.
789
790 BZ_CONFIG_ERROR
791 BZ_DATA_ERROR
792 BZ_DATA_ERROR_MAGIC
793 BZ_FINISH
794 BZ_FINISH_OK
795 BZ_FLUSH
796 BZ_FLUSH_OK
797 BZ_IO_ERROR
798 BZ_MAX_UNUSED
799 BZ_MEM_ERROR
800 BZ_OK
801 BZ_OUTBUFF_FULL
802 BZ_PARAM_ERROR
803 BZ_RUN
804 BZ_RUN_OK
805 BZ_SEQUENCE_ERROR
806 BZ_STREAM_END
807 BZ_UNEXPECTED_EOF
808
810 The documentation for zlib, bzip2 and Compress::Zlib.
811
813 Rob Janes, <arjay at cpan.org>
814
816 Copyright (C) 2005 by Rob Janes
817
818 This library is free software; you can redistribute it and/or modify it
819 under the same terms as Perl itself, either Perl version 5.8.3 or, at
820 your option, any later version of Perl 5 you may have available.
821
823 The Compress::Bzip2 module was originally written by Gawdi Azem
824 azemgi@rupert.informatik.uni-stuttgart.de.
825
826 The first Compress::Bzip2 module was written by Gawdi Azem
827 azemgi@rupert.informatik.uni-stuttgart.de. It provided an interface to
828 the in memory inflate and deflate routines.
829
830 Compress::Bzip2 was subsequently passed on to Marco Carnut kiko@tem‐
831 pest.com.br who shepharded it through to version 1.03, a set of changes
832 which included upgrades to handle bzlib 1.0.2, and improvements to the
833 in memory inflate and deflate routines. The streaming interface and
834 error information were added by David Robins dbrobins@davidrobins.net.
835
836 Version 2 of Compress::Bzip2 is due to Rob Janes, of arjay@cpan.org.
837 This release is intended to give an interface close to that of Com‐
838 press::Zlib. It's development forks from 1.00, not 1.03, so the
839 streaming interface is not the same as that in 1.03, although appar‐
840 ently compatible as it passes the 1.03 test suite.
841
843 See the Changes file.
844
845 2.00 Second public release of Compress::Bzip2.
846
847
848
849perl v5.8.8 2005-08-09 Compress::Bzip2(3)