Class BZip2


  • public class BZip2
    extends java.lang.Object
    • Constructor Summary

      Constructors 
      Constructor Description
      BZip2()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static byte[] compress​(byte[] bytes)  
      static byte[] compressApache​(byte[] bytes)  
      static byte[] compressLibBZip2​(byte[] data)  
      static byte[] decompress​(byte[] bytes, int len)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • BZip2

        public BZip2()
    • Method Detail

      • compress

        public static byte[] compress​(byte[] bytes)
                               throws java.io.IOException
        Throws:
        java.io.IOException
      • compressApache

        public static byte[] compressApache​(byte[] bytes)
                                     throws java.io.IOException
        Throws:
        java.io.IOException
      • compressLibBZip2

        public static byte[] compressLibBZip2​(byte[] data)
                                       throws java.io.IOException
        Throws:
        java.io.IOException
      • decompress

        public static byte[] decompress​(byte[] bytes,
                                        int len)
                                 throws java.io.IOException
        Throws:
        java.io.IOException