Class TIFFEntry
java.lang.Object
com.twelvemonkeys.imageio.metadata.AbstractEntry
com.twelvemonkeys.imageio.metadata.tiff.TIFFEntry
- All Implemented Interfaces:
Entry
Represents a TIFF IFD entry.
- Version:
- $Id: TIFFEntry.java,v 1.0 Nov 13, 2009 5:47:35 PM haraldk Exp$
- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturnsnull
, meaning unknown or undefined.short
getType()
(package private) static short
(package private) static long
getValueLength
(int pType, long pCount) private static short
Methods inherited from class com.twelvemonkeys.imageio.metadata.AbstractEntry
equals, getIdentifier, getNativeIdentifier, getValue, getValueAsString, hashCode, toString, valueCount
-
Field Details
-
type
private final short type
-
-
Constructor Details
-
TIFFEntry
Creates a newTIFFEntry
.- Parameters:
identifier
- the TIFF tag identifier.value
- the value of the entry.- Throws:
IllegalArgumentException
- ifvalue
isnull
.- See Also:
-
TIFFEntry
Creates a newTIFFEntry
.- Parameters:
identifier
- the TIFF tag identifier.type
- the type of the entry.value
- the value of the entry.- Throws:
IllegalArgumentException
- iftype
is not a legal TIFF type.- See Also:
-
-
Method Details
-
getType
public short getType() -
getFieldName
Description copied from class:AbstractEntry
Returnsnull
, meaning unknown or undefined.- Specified by:
getFieldName
in interfaceEntry
- Overrides:
getFieldName
in classAbstractEntry
- Returns:
null
.
-
getTypeName
- Specified by:
getTypeName
in interfaceEntry
- Overrides:
getTypeName
in classAbstractEntry
-
getType
-
guessType
-
getValueLength
static long getValueLength(int pType, long pCount)
-