The actual tag values used in the root IFD of a standard ("baseline")
tiff stream are defined in the BaselineTIFFTagSet class.
BaselineTIFFTagSet, TIFFField, TIFFTagSet
| Modifier and Type | Field and Description |
|---|---|
| private int | |
| private int | |
| private static final int | DISALLOWED_DATATYPES_MASK
Disallowed data type mask. |
| public static final int | MAX_DATATYPE
The numerically largest constant representing a TIFF data type. |
| public static final int | MIN_DATATYPE
The numerically smallest constant representing a TIFF data type. |
| private String | |
| private int | |
| private static final int[] | |
| private TIFFTagSet | |
| public static final int | TIFF_ASCII
Flag for null-terminated ASCII strings. |
| public static final int | TIFF_BYTE
Flag for 8 bit unsigned integers. |
| public static final int | TIFF_DOUBLE
Flag for 64 bit IEEE doubles. |
| public static final int | TIFF_FLOAT
Flag for 32 bit IEEE floats. |
| public static final int | TIFF_IFD_POINTER
Flag for IFD pointer defined in TIFF Tech Note 1 in TIFF Specification Supplement 1. |
| public static final int | TIFF_LONG
Flag for 32 bit unsigned integers. |
| public static final int | TIFF_RATIONAL
Flag for pairs of 32 bit unsigned integers. |
| public static final int | TIFF_SBYTE
Flag for 8 bit signed integers. |
| public static final int | TIFF_SHORT
Flag for 16 bit unsigned integers. |
| public static final int | TIFF_SLONG
Flag for 32 bit signed integers. |
| public static final int | TIFF_SRATIONAL
Flag for pairs of 32 bit signed integers. |
| public static final int | TIFF_SSHORT
Flag for 16 bit signed integers. |
| public static final int | TIFF_UNDEFINED
Flag for 8 bit uninterpreted bytes. |
| public static final String | UNKNOWN_TAG_NAME
The name assigned to a tag with an unknown tag number. |
| private SortedMap |
| Access | Constructor and Description |
|---|---|
| public | TIFFTag(String
the name of the tag. name, int the number used to represent the tag. number, int a bit mask indicating the set of legal data
types for this tag. dataTypes, int the value count for this tag. count)Constructs a |
| public | TIFFTag(String
the name of the tag. name, int the number used to represent the tag. number, TIFFTagSet the tagSet)TIFFTagSet to which this tag belongs.Constructs a |
| public |
| Modifier and Type | Method and Description |
|---|---|
| protected void | addValueName(int
the data value. value, String the name to associate with the value. name)Adds a mnemonic name for a particular value that this tag's data may take on. |
| public int | |
| public int | Returns: anint containing a bitmask encoding the
set of valid data types.Returns a bit mask indicating the set of data types that may be used to store the data associated with the tag. |
| public String | Returns: the tag name, as aString.Returns the name of the tag, as it will appear in image metadata. |
| public int[] | Returns: the values for which there is a mnemonic name.Returns an array of values for which mnemonic names are defined. |
| public int | |
| public static int | Returns: the number of bytes used to store the given data type.the data type to be queried. dataType)Returns the number of bytes used to store a value of the given data type. |
| public TIFFTagSet | |
| public String | Returns: the mnemonic name associated with the value, as aString.the data value. value)Returns the mnemonic name associated with a particular value
that this tag's data may take on, or |
| public boolean | Returns: true if mnemonic value names are available.Returns |
| public boolean | Returns: aboolean indicating whether the given
data type may be used with this tag.the data type to be queried, one of
dataType)TIFF_BYTE, TIFF_SHORT, etc.Returns |
| public boolean | Returns: true if this tag points to an IFD.Returns |
| count | back to summary |
|---|---|
| private int count | |
| dataTypes | back to summary |
|---|---|
| private int dataTypes | |
| DISALLOWED_DATATYPES_MASK | back to summary |
|---|---|
| private static final int DISALLOWED_DATATYPES_MASK Disallowed data type mask. | |
| MAX_DATATYPE | back to summary |
|---|---|
| public static final int MAX_DATATYPE The numerically largest constant representing a TIFF data type. | |
| MIN_DATATYPE | back to summary |
|---|---|
| public static final int MIN_DATATYPE The numerically smallest constant representing a TIFF data type. | |
| name | back to summary |
|---|---|
| private String name | |
| number | back to summary |
|---|---|
| private int number | |
| SIZE_OF_TYPE | back to summary |
|---|---|
| private static final int[] SIZE_OF_TYPE | |
| tagSet | back to summary |
|---|---|
| private TIFFTagSet tagSet | |
| TIFF_ASCII | back to summary |
|---|---|
| public static final int TIFF_ASCII Flag for null-terminated ASCII strings. | |
| TIFF_BYTE | back to summary |
|---|---|
| public static final int TIFF_BYTE Flag for 8 bit unsigned integers. | |
| TIFF_DOUBLE | back to summary |
|---|---|
| public static final int TIFF_DOUBLE Flag for 64 bit IEEE doubles. | |
| TIFF_FLOAT | back to summary |
|---|---|
| public static final int TIFF_FLOAT Flag for 32 bit IEEE floats. | |
| TIFF_IFD_POINTER | back to summary |
|---|---|
| public static final int TIFF_IFD_POINTER Flag for IFD pointer defined in TIFF Tech Note 1 in TIFF Specification Supplement 1. | |
| TIFF_LONG | back to summary |
|---|---|
| public static final int TIFF_LONG Flag for 32 bit unsigned integers. | |
| TIFF_RATIONAL | back to summary |
|---|---|
| public static final int TIFF_RATIONAL Flag for pairs of 32 bit unsigned integers. | |
| TIFF_SBYTE | back to summary |
|---|---|
| public static final int TIFF_SBYTE Flag for 8 bit signed integers. | |
| TIFF_SHORT | back to summary |
|---|---|
| public static final int TIFF_SHORT Flag for 16 bit unsigned integers. | |
| TIFF_SLONG | back to summary |
|---|---|
| public static final int TIFF_SLONG Flag for 32 bit signed integers. | |
| TIFF_SRATIONAL | back to summary |
|---|---|
| public static final int TIFF_SRATIONAL Flag for pairs of 32 bit signed integers. | |
| TIFF_SSHORT | back to summary |
|---|---|
| public static final int TIFF_SSHORT Flag for 16 bit signed integers. | |
| TIFF_UNDEFINED | back to summary |
|---|---|
| public static final int TIFF_UNDEFINED Flag for 8 bit uninterpreted bytes. | |
| UNKNOWN_TAG_NAME | back to summary |
|---|---|
| public static final String UNKNOWN_TAG_NAME The name assigned to a tag with an unknown tag number. Such
a tag may be created for example when reading an IFD and a
tag number is encountered which is not in any of the
| |
| valueNames | back to summary |
|---|---|
| private SortedMap<Integer, String> valueNames | |
| TIFFTag | back to summary |
|---|---|
| public TIFFTag(String name, int number, int dataTypes, int count) Constructs a If there are mnemonic names to be associated with the legal
data values for the tag, See the documentation for
| |
| TIFFTag | back to summary |
|---|---|
| public TIFFTag(String name, int number, TIFFTagSet tagSet) Constructs a
| |
| TIFFTag | back to summary |
|---|---|
| public TIFFTag(String name, int number, int dataTypes) Constructs a
| |
| addValueName | back to summary |
|---|---|
| protected void addValueName(int value, String name) Adds a mnemonic name for a particular value that this tag's data may take on. Mnemonic names apply only to tags which have integral data type.
| |
| getCount | back to summary |
|---|---|
| public int getCount() Returns the value count of this tag. If this value is positive, it
represents the required number of values for a
| |
| getDataTypes | back to summary |
|---|---|
| public int getDataTypes() Returns a bit mask indicating the set of data types that may be used to store the data associated with the tag. For example, a tag that can store both SHORT and LONG values would return a value of: (1 << TIFFTag.TIFF_SHORT) | (1 << TIFFTag.TIFF_LONG)
| |
| getName | back to summary |
|---|---|
| public String getName() Returns the name of the tag, as it will appear in image metadata.
| |
| getNamedValues | back to summary |
|---|---|
| public int[] getNamedValues() Returns an array of values for which mnemonic names are defined. The
method
| |
| getNumber | back to summary |
|---|---|
| public int getNumber() Returns the integer used to represent the tag.
| |
| getSizeOfType | back to summary |
|---|---|
| public static int getSizeOfType(int dataType) Returns the number of bytes used to store a value of the given data type.
| |
| getTagSet | back to summary |
|---|---|
| public TIFFTagSet getTagSet() Returns the
| |
| getValueName | back to summary |
|---|---|
| public String getValueName(int value) Returns the mnemonic name associated with a particular value
that this tag's data may take on, or
| |
| hasValueNames | back to summary |
|---|---|
| public boolean hasValueNames() Returns
| |
| isDataTypeOK | back to summary |
|---|---|
| public boolean isDataTypeOK(int dataType) Returns
| |
| isIFDPointer | back to summary |
|---|---|
| public boolean isIFDPointer() Returns Many TIFF extensions use the IFD mechanism in order to limit the number of new tags that may appear in the root IFD.
| |