Is there a way to unzip bzip2 data in java?
There seems to be a Java implementation at http://www.kohsuke.org/bzip2/
It doesn't seem to be optimized, though. Compression seems to work several times slower than Java LZMA.
Check out this URL http://schmidt.devlib.org/jiu/download.html
Let me explain the question a little bit more. I'm reading a stream from the internet which is compressed in BZip2, so the stream contains bytes. I need to decompress those bytes to a normal text format. So far I found 1 library (CBZip2InputStream) but this is not really what i'm looking for cause it only accepts inputstreams. I need to reverse and decode the stream before I decompress it, so i need to turn it into an array. I thought of using a ByteArryInputStream but the stream is thousands of lines so that would be a huge ByteArray. An1 got ideas?
Maybe that'll help http://www.bzip.org/
Your use of this web site or any of its content or software indicates your agreement to be bound by these Terms of Participation.
Copyright © 2014, Oracle and/or its affiliates. All rights reserved. Oracle and Java are registered trademarks of Oracle and/or its affiliates. Other names may be trademarks of their respective owners.