public final class ImageHeaderParserUtils
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static int |
getOrientation(java.util.List<ImageHeaderParser> parsers,
java.nio.ByteBuffer buffer,
ArrayPool arrayPool)
Returns the result from the first of
parsers that returns something other than ImageHeaderParser.UNKNOWN_ORIENTATION . |
static int |
getOrientation(java.util.List<ImageHeaderParser> parsers,
java.io.InputStream is,
ArrayPool byteArrayPool)
Returns the orientation for the given InputStream.
|
static int |
getOrientation(java.util.List<ImageHeaderParser> parsers,
ParcelFileDescriptorRewinder parcelFileDescriptorRewinder,
ArrayPool byteArrayPool) |
static ImageHeaderParser.ImageType |
getType(java.util.List<ImageHeaderParser> parsers,
java.nio.ByteBuffer buffer)
Returns the ImageType for the given ByteBuffer.
|
static ImageHeaderParser.ImageType |
getType(java.util.List<ImageHeaderParser> parsers,
java.io.InputStream is,
ArrayPool byteArrayPool)
Returns the ImageType for the given InputStream.
|
static ImageHeaderParser.ImageType |
getType(java.util.List<ImageHeaderParser> parsers,
ParcelFileDescriptorRewinder parcelFileDescriptorRewinder,
ArrayPool byteArrayPool) |
@NonNull public static ImageHeaderParser.ImageType getType(@NonNull java.util.List<ImageHeaderParser> parsers, @Nullable java.io.InputStream is, @NonNull ArrayPool byteArrayPool) throws java.io.IOException
java.io.IOException
@NonNull public static ImageHeaderParser.ImageType getType(@NonNull java.util.List<ImageHeaderParser> parsers, @Nullable java.nio.ByteBuffer buffer) throws java.io.IOException
java.io.IOException
@NonNull public static ImageHeaderParser.ImageType getType(@NonNull java.util.List<ImageHeaderParser> parsers, @NonNull ParcelFileDescriptorRewinder parcelFileDescriptorRewinder, @NonNull ArrayPool byteArrayPool) throws java.io.IOException
java.io.IOException
public static int getOrientation(@NonNull java.util.List<ImageHeaderParser> parsers, @Nullable java.nio.ByteBuffer buffer, @NonNull ArrayPool arrayPool) throws java.io.IOException
parsers
that returns something other than ImageHeaderParser.UNKNOWN_ORIENTATION
.
If buffer
is null, the parers list is empty, or none of the parsers returns a valid
value, ImageHeaderParser.UNKNOWN_ORIENTATION
is returned.
java.io.IOException
public static int getOrientation(@NonNull java.util.List<ImageHeaderParser> parsers, @Nullable java.io.InputStream is, @NonNull ArrayPool byteArrayPool) throws java.io.IOException
java.io.IOException
public static int getOrientation(@NonNull java.util.List<ImageHeaderParser> parsers, @NonNull ParcelFileDescriptorRewinder parcelFileDescriptorRewinder, @NonNull ArrayPool byteArrayPool) throws java.io.IOException
java.io.IOException