public class TLcdGeoTIFFField extends Object
The data can be of the following types:
TIFF type | Data type |
---|---|
TYPE_ASCII | String[] |
TYPE_SBYTE | byte[] |
TYPE_BYTE | byte[] |
TYPE_SSHORT | short[] |
TYPE_SHORT | char[] |
TYPE_SLONG | int[] |
TYPE_LONG | long[] |
TYPE_FLOAT | float[] |
TYPE_DOUBLE | double[] |
TYPE_SRATIONAL | int[][] |
TYPE_RATIONAL | long[][] |
TYPE_UNDEFINED | byte[] |
Modifier and Type | Field and Description |
---|---|
static int |
TYPE_ASCII
The ASCII type, with data represented as an array of Strings.
|
static int |
TYPE_BYTE
The unsigned byte type (8 bits), with data represented as an array of shorts.
|
static int |
TYPE_DOUBLE
The float type (64 bits IEEE), with data represented as an array of doubles.
|
static int |
TYPE_FLOAT
The float type (32 bits IEEE), with data represented as an array of floats.
|
static int |
TYPE_IFD_POINTER
The type for a 32-bit pointer to an image file directory.
|
static int |
TYPE_IFD8_POINTER
The type for a 64-bit pointer to an image file directory.
|
static int |
TYPE_LONG
The unsigned long type (32 bits), with data represented as an array of longs.
|
static int |
TYPE_RATIONAL
The unsigned rational type (2x32 bits), with data represented as an array
containing arrays of two longs.
|
static int |
TYPE_SBYTE
The signed byte type (8 bits), with data represented as an array of bytes.
|
static int |
TYPE_SHORT
The unsigned short type (16 bits), with data represented as an array of ints.
|
static int |
TYPE_SLONG
The signed long type (32 bits), with data represented as an array of ints.
|
static int |
TYPE_SRATIONAL
The signed rational type (2x32 bits), with data represented as an array
containing arrays of two ints.
|
static int |
TYPE_SSHORT
The signed short type (16 bits), with data represented as an array of shorts.
|
static int |
TYPE_UNDEFINED
The undefined type, with data represented as an array of bytes.
|
Constructor and Description |
---|
TLcdGeoTIFFField(int aTag,
int aType,
int aCount,
Object aData)
Creates a new TLcdGeoTIFFField containing the specified tag and values.
|
Modifier and Type | Method and Description |
---|---|
int |
getCount()
Returns the number of data values of this field.
|
Object |
getData()
Returns the data (value or values) contained in this field.
|
Number |
getNumericValue()
Returns the (first) numeric value, if this field has a numeric type.
|
Number |
getNumericValue(int aIndex)
Returns the numeric value at the specified index, if this field has a
numeric type.
|
String |
getStringValue()
Returns the (first) string value, if this field has an ASCII type.
|
String |
getStringValue(int aIndex)
Returns the string value at the specified index, if this field has an
ASCII type.
|
int |
getTag()
Returns the tag (key) of this field.
|
int |
getType()
Returns the type of the data of this field.
|
String |
toString() |
public static final int TYPE_ASCII
public static final int TYPE_SBYTE
public static final int TYPE_BYTE
public static final int TYPE_SSHORT
public static final int TYPE_SHORT
public static final int TYPE_SLONG
public static final int TYPE_LONG
public static final int TYPE_FLOAT
public static final int TYPE_DOUBLE
public static final int TYPE_SRATIONAL
public static final int TYPE_RATIONAL
public static final int TYPE_UNDEFINED
public static final int TYPE_IFD_POINTER
public static final int TYPE_IFD8_POINTER
public TLcdGeoTIFFField(int aTag, int aType, int aCount, Object aData)
aTag
- the TIFF tagaType
- one of TYPE_ASCII
, TYPE_SBYTE
, etc.aCount
- the number of data values.aData
- the TIFF data, presented as an array of the proper data type.public int getTag()
public int getType()
TYPE_ASCII
, TYPE_SBYTE
, etc.public int getCount()
public Object getData()
public Number getNumericValue()
public Number getNumericValue(int aIndex)
aIndex
- the index of the numeric value.public String getStringValue()
public String getStringValue(int aIndex)
aIndex
- the index of the string value.