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(java.nio.ByteBuffer byteBuffer,
ArrayPool byteArrayPool) |
int |
getOrientation(java.io.InputStream is,
ArrayPool byteArrayPool)
Parse the orientation from the image header.
|
ImageHeaderParser.ImageType |
getType(java.nio.ByteBuffer byteBuffer) |
ImageHeaderParser.ImageType |
getType(java.io.InputStream is) |
static final int UNKNOWN_ORIENTATION
@NonNull ImageHeaderParser.ImageType getType(@NonNull java.io.InputStream is) throws java.io.IOException
java.io.IOException@NonNull ImageHeaderParser.ImageType getType(@NonNull java.nio.ByteBuffer byteBuffer) throws java.io.IOException
java.io.IOExceptionint getOrientation(@NonNull
java.io.InputStream is,
@NonNull
ArrayPool byteArrayPool)
throws java.io.IOException
java.io.IOExceptionint getOrientation(@NonNull
java.nio.ByteBuffer byteBuffer,
@NonNull
ArrayPool byteArrayPool)
throws java.io.IOException
java.io.IOException