-
- All Implemented Interfaces:
-
com.mobwith.imgmodule.load.ImageHeaderParser
public final class DefaultImageHeaderParser implements ImageHeaderParser
A class for parsing the exif orientation and other data from an image header.
-
-
Method Summary
Modifier and Type Method Description ImageHeaderParser.ImageTypegetType(@NonNull() InputStream is)ImageHeaderParser.ImageTypegetType(@NonNull() ByteBuffer byteBuffer)intgetOrientation(@NonNull() InputStream is, @NonNull() ArrayPool byteArrayPool)Parse the orientation from the image header. intgetOrientation(@NonNull() ByteBuffer byteBuffer, @NonNull() ArrayPool byteArrayPool)-
-
Method Detail
-
getType
@NonNull() ImageHeaderParser.ImageType getType(@NonNull() InputStream is)
-
getType
@NonNull() ImageHeaderParser.ImageType getType(@NonNull() ByteBuffer byteBuffer)
-
getOrientation
int getOrientation(@NonNull() InputStream is, @NonNull() ArrayPool byteArrayPool)
Parse the orientation from the image header. If it doesn't handle this image type (or this isnot an image) it will return a default value rather than throwing an exception.
-
getOrientation
int getOrientation(@NonNull() ByteBuffer byteBuffer, @NonNull() ArrayPool byteArrayPool)
-
-
-
-