|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Object java.lang.Enum<IfdType> net.coobird.thumbnailator.util.exif.IfdType
public enum IfdType
This enum corresponds to the types of data present in an IFD, as defined in Section 4.6.2 of the Exif Specification version 2.3.
Enum Constant Summary | |
---|---|
ASCII
An 8-bit value containing a single 7-bit ASCII character. |
|
BYTE
An 8-bit unsigned integer value. |
|
LONG
A 32-bit unsigned integer value. |
|
RATIONAL
Two LONG values, where the first LONG is the
numerator, while the second LONG is the denominator. |
|
SHORT
A 16-bit unsigned integer value. |
|
SLONG
A 32-bit signed integer value using 2's complement. |
|
SRATIONAL
Two SLONG values, where the first SLONG is the
numerator, while the second SLONG is the denominator. |
|
UNDEFINED
An 8-bit value which can be value as defined elsewhere. |
Method Summary | |
---|---|
int |
size()
Returns the size in bytes for this IFD type. |
String |
toString()
Returns a textual String reprensentation of this enum. |
static IfdType |
typeOf(int value)
Returns the IfdType corresponding to the given IFD type value. |
int |
value()
Returns the IFD type as a type value. |
static IfdType |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static IfdType[] |
values()
Returns an array containing the constants of this enum type, in the order they're declared. |
Methods inherited from class java.lang.Enum |
---|
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, valueOf |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Enum Constant Detail |
---|
public static final IfdType BYTE
public static final IfdType ASCII
public static final IfdType SHORT
public static final IfdType LONG
public static final IfdType RATIONAL
LONG
values, where the first LONG
is the
numerator, while the second LONG
is the denominator.
public static final IfdType UNDEFINED
public static final IfdType SLONG
public static final IfdType SRATIONAL
SLONG
values, where the first SLONG
is the
numerator, while the second SLONG
is the denominator.
Method Detail |
---|
public static final IfdType[] values()
for(IfdType c : IfdType.values()) System.out.println(c);
public static IfdType valueOf(String name)
name
- the name of the enum constant to be returned.
IllegalArgumentException
- if this enum type has no constant
with the specified namepublic int size()
public int value()
public static IfdType typeOf(int value)
IfdType
corresponding to the given IFD type value.
value
- The IFD type value.
IfdType
corresponding to the IDF type value.
Return null
if the given value does not
correspond to a valid IfdType
.public String toString()
String
reprensentation of this enum.
toString
in class Enum<IfdType>
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |