mil.nga.tiff.compression.UnsupportedCompression Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of tiff Show documentation
Show all versions of tiff Show documentation
Library for reading and writing TIFF (Tagged Image File Format) files
The newest version!
package mil.nga.tiff.compression;
import java.nio.ByteOrder;
import mil.nga.tiff.util.TiffException;
/**
* Unsupported compression
*
* @author michaelknigge
*/
public class UnsupportedCompression implements CompressionDecoder, CompressionEncoder {
private final String message;
/**
* Constructor
*
* @param message
* message of the TiffException
* @since 2.0.1
*/
public UnsupportedCompression(final String message) {
this.message = message;
}
/**
* {@inheritDoc}
*/
@Override
public byte[] decode(byte[] bytes, ByteOrder byteOrder) {
throw new TiffException(this.message);
}
/**
* {@inheritDoc}
*/
@Override
public boolean rowEncoding() {
return false;
}
/**
* {@inheritDoc}
*/
@Override
public byte[] encode(byte[] bytes, ByteOrder byteOrder) {
throw new TiffException(this.message);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy