public class TIFFTag
extends java.lang.Object
The actual tag values used in the root IFD of a standard ("baseline") tiff
stream are defined in the BaselineTagSet
class.
Modifier and Type | Field and Description |
---|---|
static int |
ALL_MASK |
static int |
ASCII_MASK |
static int |
BYTE_MASK |
static int |
DOUBLE_MASK |
static int |
FLOAT_MASK |
static int |
IFD_MASK |
static int |
LONG_MASK |
static int |
RATIONAL_MASK |
static int |
SBYTE_MASK |
static int |
SHORT_MASK |
static int |
SLONG_MASK |
static int |
SRATIONAL_MASK |
static int |
SSHORT_MASK |
static int |
UNDEFINED_MASK |
Constructor and Description |
---|
TIFFTag(java.lang.String name,
int number,
int dataTypes)
Constructs a TIFFTag with a given name, tag number, set of legal data types,
and TagSet to which it refers.
|
TIFFTag(java.lang.String name,
int number,
int dataTypes,
ValueFormatter formatter)
Constructs a TIFFTag with a given name, tag number, set of legal data types,
and TagSet to which it refers.
|
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
format(java.lang.Object data) |
java.lang.String |
getDescription(java.lang.Object data) |
java.lang.String |
getName()
Returns the name of the tag, or null if the name is not known.
|
int |
getNumber()
Returns the integer used to represent the tag.
|
IFDDataType |
getType(java.lang.Object data) |
boolean |
isSynthetic() |
java.lang.Object |
prettyFormat(java.lang.Object data) |
java.lang.String |
toString() |
public static final int ASCII_MASK
public static final int BYTE_MASK
public static final int DOUBLE_MASK
public static final int FLOAT_MASK
public static final int IFD_MASK
public static final int LONG_MASK
public static final int SHORT_MASK
public static final int RATIONAL_MASK
public static final int SBYTE_MASK
public static final int SLONG_MASK
public static final int SSHORT_MASK
public static final int SRATIONAL_MASK
public static final int UNDEFINED_MASK
public static final int ALL_MASK
public TIFFTag(java.lang.String name, int number, int dataTypes, ValueFormatter formatter)
If there are mnemonic names to be associated with the legal data values for the tag, addValueName() should be called on the new instance for each name.
See the documentation for getDataTypes() for an explanation of how the set of data types is to be converted into a bit mask.
name
- the name of the tag; may be null.number
- the number used to represent the tag.dataTypes
- a bit mask indicating the set of legal data types for this tag.formatter
- a ValueFormatter for formatting data values.public TIFFTag(java.lang.String name, int number, int dataTypes)
If there are mnemonic names to be associated with the legal data values for the tag, addValueName() should be called on the new instance for each name.
See the documentation for getDataTypes() for an explanation of how the set of data types is to be converted into a bit mask.
name
- the name of the tag; may be null.number
- the number used to represent the tag.dataTypes
- a bit mask indicating the set of legal data types for this tag.public int getNumber()
public java.lang.String getName()
public boolean isSynthetic()
public IFDDataType getType(java.lang.Object data)
public java.lang.Object prettyFormat(java.lang.Object data)
public java.lang.Object format(java.lang.Object data)
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String getDescription(java.lang.Object data)