Package mil.nga.tiff.compression
Interface CompressionEncoder
-
- All Known Implementing Classes:
DeflateCompression
,LZWCompression
,PackbitsCompression
,RawCompression
,UnsupportedCompression
public interface CompressionEncoder
Compression encoder interface. Encode either on a per row or block basis- Author:
- osbornb
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description byte[]
encode(byte[] bytes, ByteOrder byteOrder)
Encode the bytesboolean
rowEncoding()
True to encode on a per row basis, false to encode on a per block / strip basis
-
-
-
Method Detail
-
rowEncoding
boolean rowEncoding()
True to encode on a per row basis, false to encode on a per block / strip basis- Returns:
- true for row encoding
-
encode
byte[] encode(byte[] bytes, ByteOrder byteOrder)
Encode the bytes- Parameters:
bytes
- bytes to encodebyteOrder
- byte order- Returns:
- encoded block of bytes
-
-