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 short
type
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getFieldName()
Returnsnull
, meaning unknown or undefined.short
getType()
(package private) static short
getType(Entry entry)
java.lang.String
getTypeName()
(package private) static long
getValueLength(int pType, long pCount)
private static short
guessType(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
- ifvalue
isnull
.- 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
- iftype
is not a legal TIFF type.- See Also:
TIFF
-
-
Method Detail
-
getType
public short getType()
-
getFieldName
public java.lang.String getFieldName()
Description copied from class:AbstractEntry
Returnsnull
, meaning unknown or undefined.- Specified by:
getFieldName
in interfaceEntry
- Overrides:
getFieldName
in classAbstractEntry
- Returns:
null
.
-
getTypeName
public java.lang.String getTypeName()
- Specified by:
getTypeName
in interfaceEntry
- Overrides:
getTypeName
in classAbstractEntry
-
getType
static short getType(Entry entry)
-
guessType
private static short guessType(java.lang.Object entryValue)
-
getValueLength
static long getValueLength(int pType, long pCount)
-
-