This repository was exported from the jbzip2
Google Code project to ensure it survives the service’s shutdown.
We are not the library’s authors; expect no updates here.
The original description of the Google Code project follows.
jbzip2
is a Java bzip2
compression/decompression library.
It can be used as a replacement for the Apache CBZip2InputStream
/ CBZip2OutputStream
classes
- 13/10/2011 jbzip2-0.9.1 is now available. This release fixes numerous bugs in both compression and decompression.
- 25/05/2011 jbzip2-0.9 is now available
- A decompressor that is typically 5% to 10% faster than
CBZip2InputStream
- A compressor of broadly comparable speed to
CBZip2OutputStream
(slightly slower in some cases, rather faster than others) - Legible, well factored code suitable for studying how the algorithms of BZip2 work
- To compress data, pass it through a
BZip2OutputStream
- To decompress data, pass it through a
BZip2InputStream
-
jbzip2
has been tested successfully on a moderately large and diverse body of data, but more is needed. Please help by testingjbzip2
on your own data -
Testing can be carried out using the
RoundTrip
utility included in the distribution:java -cp jbzip2-0.9.1.jar demo.RoundTrip /path/to/test/data
-
Each ordinary readable file beneath the given path will be compressed into a temporary file, then decompressed (no files will be created or altered in place). If any error is encountered, the test will stop with an exception
-
Reports of success, as well as failure would be most welcome. Feedback can be sent to the author