Class PackBits


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

      Constructors 
      Constructor Description
      PackBits()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      byte[] compress​(byte[] bytes)  
      byte[] decompress​(byte[] bytes, int expected)  
      private int findNextDuplicate​(byte[] bytes, int start)  
      private int findRunLength​(byte[] bytes, int start)  
      • Methods inherited from class java.lang.Object

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

      • PackBits

        public PackBits()
    • Method Detail

      • findNextDuplicate

        private int findNextDuplicate​(byte[] bytes,
                                      int start)
      • findRunLength

        private int findRunLength​(byte[] bytes,
                                  int start)
      • compress

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