public final class DefaultImageHeaderParser extends Object implements ImageHeaderParser
ImageHeaderParser.ImageTypeUNKNOWN_ORIENTATION| Constructor and Description |
|---|
DefaultImageHeaderParser() |
| 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) |
@NonNull public ImageHeaderParser.ImageType getType(@NonNull InputStream is) throws IOException
getType in interface ImageHeaderParserIOException@NonNull public ImageHeaderParser.ImageType getType(@NonNull ByteBuffer byteBuffer) throws IOException
getType in interface ImageHeaderParserIOExceptionpublic int getOrientation(@NonNull InputStream is, @NonNull ArrayPool byteArrayPool) throws IOException
ImageHeaderParsergetOrientation in interface ImageHeaderParserIOExceptionpublic int getOrientation(@NonNull ByteBuffer byteBuffer, @NonNull ArrayPool byteArrayPool) throws IOException
getOrientation in interface ImageHeaderParserIOException