Class LZWCompression

    • Constructor Summary

      Constructors 
      Constructor Description
      LZWCompression​()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      byte[] decode​(byte[] bytes, java.nio.ByteOrder byteOrder)
      Decode the bytes
      byte[] encode​(byte[] bytes, java.nio.ByteOrder byteOrder)
      Encode the bytes
      boolean rowEncoding​()
      True to encode on a per row basis, false to encode on a per block / strip basis
      • Methods inherited from class java.lang.Object

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

      • LZWCompression

        public LZWCompression​()
    • Method Detail

      • decode

        public byte[] decode​(byte[] bytes,
                             java.nio.ByteOrder byteOrder)
        Decode the bytes
        Specified by:
        decode in interface CompressionDecoder
        Parameters:
        bytes - bytes to decode
        byteOrder - byte order
        Returns:
        decoded bytes
      • rowEncoding

        public boolean rowEncoding​()
        True to encode on a per row basis, false to encode on a per block / strip basis
        Specified by:
        rowEncoding in interface CompressionEncoder
        Returns:
        true for row encoding
      • encode

        public byte[] encode​(byte[] bytes,
                             java.nio.ByteOrder byteOrder)
        Encode the bytes
        Specified by:
        encode in interface CompressionEncoder
        Parameters:
        bytes - bytes to encode
        byteOrder - byte order
        Returns:
        encoded block of bytes