public interface ImageHeaderParser
Modifier and Type | Interface and Description |
---|---|
static class |
ImageHeaderParser.ImageType
The format of the image data including whether or not the image may include transparent
pixels.
|
Modifier and Type | Field and Description |
---|---|
static int |
UNKNOWN_ORIENTATION
A constant indicating we were unable to parse the orientation from the image either because
no exif segment containing orientation data existed, or because of an I/O error attempting to
read the exif segment.
|
Modifier and Type | Method and Description |
---|---|
int |
getOrientation(ByteBuffer byteBuffer,
ArrayPool byteArrayPool) |
int |
getOrientation(InputStream is,
ArrayPool byteArrayPool)
Parse the orientation from the image header.
|
ImageHeaderParser.ImageType |
getType(ByteBuffer byteBuffer) |
ImageHeaderParser.ImageType |
getType(InputStream is) |
static final int UNKNOWN_ORIENTATION
ImageHeaderParser.ImageType getType(InputStream is) throws IOException
IOException
ImageHeaderParser.ImageType getType(ByteBuffer byteBuffer) throws IOException
IOException
int getOrientation(InputStream is, ArrayPool byteArrayPool) throws IOException
IOException
int getOrientation(ByteBuffer byteBuffer, ArrayPool byteArrayPool) throws IOException
IOException