Package mil.nga.tiff.compression
Class UnsupportedCompression
- java.lang.Object
-
- mil.nga.tiff.compression.UnsupportedCompression
-
- All Implemented Interfaces:
CompressionDecoder
,CompressionEncoder
public class UnsupportedCompression extends Object implements CompressionDecoder, CompressionEncoder
Unsupported compression- Author:
- michaelknigge
-
-
Constructor Summary
Constructors Constructor Description UnsupportedCompression(String message)
Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description byte[]
decode(byte[] bytes, ByteOrder byteOrder)
Decode the bytesbyte[]
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
-
-
-
Constructor Detail
-
UnsupportedCompression
public UnsupportedCompression(String message)
Constructor- Parameters:
message
- message of the TiffException- Since:
- 2.0.1
-
-
Method Detail
-
decode
public byte[] decode(byte[] bytes, ByteOrder byteOrder)
Decode the bytes- Specified by:
decode
in interfaceCompressionDecoder
- Parameters:
bytes
- bytes to decodebyteOrder
- 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 interfaceCompressionEncoder
- Returns:
- true for row encoding
-
encode
public byte[] encode(byte[] bytes, ByteOrder byteOrder)
Encode the bytes- Specified by:
encode
in interfaceCompressionEncoder
- Parameters:
bytes
- bytes to encodebyteOrder
- byte order- Returns:
- encoded block of bytes
-
-