public class TiffField extends Object
| Modifier and Type | Class and Description |
|---|---|
class |
TiffField.OversizeValueElement |
| Constructor and Description |
|---|
TiffField(int tag,
int directoryType,
FieldType fieldType,
long count,
long offset,
byte[] value,
ByteOrder byteOrder,
int sortHint) |
| Modifier and Type | Method and Description |
|---|---|
void |
dump() |
void |
dump(PrintWriter pw) |
void |
dump(PrintWriter pw,
String prefix) |
byte[] |
getByteArrayValue()
Returns a copy of the raw value of the field.
|
ByteOrder |
getByteOrder()
Returns the field's byte order.
|
int |
getBytesLength()
The length of the field's value.
|
long |
getCount()
Returns the field's count, derived from bytes 4-7.
|
String |
getDescriptionWithoutValue() |
int |
getDirectoryType() |
double[] |
getDoubleArrayValue() |
double |
getDoubleValue() |
FieldType |
getFieldType()
Returns the field's type, derived from bytes 2-3.
|
String |
getFieldTypeName() |
int[] |
getIntArrayValue() |
int |
getIntValue() |
int |
getIntValueOrArraySum() |
int |
getOffset()
Returns the TIFF field's offset/value field, derived from bytes 8-11.
|
TiffElement |
getOversizeValueElement() |
int |
getSortHint() |
String |
getStringValue() |
int |
getTag()
Returns the field's tag, derived from bytes 0-1.
|
TagInfo |
getTagInfo() |
String |
getTagName() |
Object |
getValue() |
String |
getValueDescription() |
boolean |
isLocalValue()
Indicates whether the field's value is inlined into the offset field.
|
String |
toString() |
public int getDirectoryType()
public TagInfo getTagInfo()
public int getTag()
int in which only the lowest 2 bytes are setpublic FieldType getFieldType()
FieldType object.public long getCount()
public int getOffset()
long of 4 packed bytes,
or its inlined value <= 4 bytes long encoded in the field's byte order.public ByteOrder getByteOrder()
public int getSortHint()
public boolean isLocalValue()
public int getBytesLength()
public byte[] getByteArrayValue()
public TiffElement getOversizeValueElement()
public String getValueDescription()
public void dump()
public void dump(PrintWriter pw)
public void dump(PrintWriter pw, String prefix)
public String getDescriptionWithoutValue()
public String getTagName()
public String getFieldTypeName()
public Object getValue() throws ImageReadException
ImageReadExceptionpublic String getStringValue() throws ImageReadException
ImageReadExceptionpublic int[] getIntArrayValue()
throws ImageReadException
ImageReadExceptionpublic double[] getDoubleArrayValue()
throws ImageReadException
ImageReadExceptionpublic int getIntValueOrArraySum()
throws ImageReadException
ImageReadExceptionpublic int getIntValue()
throws ImageReadException
ImageReadExceptionpublic double getDoubleValue()
throws ImageReadException
ImageReadExceptionCopyright © 2007–2020 The Apache Software Foundation. All rights reserved.