public final class DefaultImageHeaderParser extends Object implements ImageHeaderParser
ImageHeaderParser.ImageType
UNKNOWN_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) |
public ImageHeaderParser.ImageType getType(InputStream is) throws IOException
getType
in interface ImageHeaderParser
IOException
public ImageHeaderParser.ImageType getType(ByteBuffer byteBuffer) throws IOException
getType
in interface ImageHeaderParser
IOException
public int getOrientation(InputStream is, ArrayPool byteArrayPool) throws IOException
ImageHeaderParser
getOrientation
in interface ImageHeaderParser
IOException
public int getOrientation(ByteBuffer byteBuffer, ArrayPool byteArrayPool) throws IOException
getOrientation
in interface ImageHeaderParser
IOException