Class TIFFEntry
- java.lang.Object
-
- com.twelvemonkeys.imageio.metadata.AbstractEntry
-
- com.twelvemonkeys.imageio.metadata.tiff.TIFFEntry
-
- All Implemented Interfaces:
Entry
public final class TIFFEntry extends AbstractEntry
Represents a TIFF IFD entry.
-
-
Field Summary
Fields Modifier and Type Field Description private shorttype
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetFieldName()Returnsnull, meaning unknown or undefined.shortgetType()(package private) static shortgetType(Entry entry)java.lang.StringgetTypeName()(package private) static longgetValueLength(int pType, long pCount)private static shortguessType(java.lang.Object entryValue)-
Methods inherited from class com.twelvemonkeys.imageio.metadata.AbstractEntry
equals, getIdentifier, getNativeIdentifier, getValue, getValueAsString, hashCode, toString, valueCount
-
-
-
-
Constructor Detail
-
TIFFEntry
public TIFFEntry(int identifier, java.lang.Object value)Creates a newTIFFEntry.- Parameters:
identifier- the TIFF tag identifier.value- the value of the entry.- Throws:
java.lang.IllegalArgumentException- ifvalueisnull.- See Also:
TIFFEntry(int, short, Object)
-
TIFFEntry
public TIFFEntry(int identifier, short type, java.lang.Object value)Creates a newTIFFEntry.- Parameters:
identifier- the TIFF tag identifier.type- the type of the entry.value- the value of the entry.- Throws:
java.lang.IllegalArgumentException- iftypeis not a legal TIFF type.- See Also:
TIFF
-
-
Method Detail
-
getType
public short getType()
-
getFieldName
public java.lang.String getFieldName()
Description copied from class:AbstractEntryReturnsnull, meaning unknown or undefined.- Specified by:
getFieldNamein interfaceEntry- Overrides:
getFieldNamein classAbstractEntry- Returns:
null.
-
getTypeName
public java.lang.String getTypeName()
- Specified by:
getTypeNamein interfaceEntry- Overrides:
getTypeNamein classAbstractEntry
-
getType
static short getType(Entry entry)
-
guessType
private static short guessType(java.lang.Object entryValue)
-
getValueLength
static long getValueLength(int pType, long pCount)
-
-