public final class DefaultImageHeaderParser extends Object implements ImageHeaderParser
ImageHeaderParser.ImageType
UNKNOWN_ORIENTATION
构造器和说明 |
---|
DefaultImageHeaderParser() |
限定符和类型 | 方法和说明 |
---|---|
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
在接口中 ImageHeaderParser
IOException
@NonNull public ImageHeaderParser.ImageType getType(@NonNull ByteBuffer byteBuffer) throws IOException
getType
在接口中 ImageHeaderParser
IOException
public int getOrientation(@NonNull InputStream is, @NonNull ArrayPool byteArrayPool) throws IOException
ImageHeaderParser
getOrientation
在接口中 ImageHeaderParser
IOException
public int getOrientation(@NonNull ByteBuffer byteBuffer, @NonNull ArrayPool byteArrayPool) throws IOException
getOrientation
在接口中 ImageHeaderParser
IOException