public class TagInfo extends Object
Modifier and Type | Field and Description |
---|---|
List<FieldType> |
dataTypes |
TiffDirectoryType |
directoryType |
int |
length |
static int |
LENGTH_UNKNOWN |
String |
name |
int |
tag |
Constructor and Description |
---|
TagInfo(String name,
int tag,
FieldType dataType) |
TagInfo(String name,
int tag,
FieldType dataType,
int length) |
TagInfo(String name,
int tag,
FieldType dataType,
int length,
TiffDirectoryType exifDirectory) |
TagInfo(String name,
int tag,
FieldType dataType,
int length,
TiffDirectoryType exifDirectory,
boolean isOffset) |
TagInfo(String name,
int tag,
List<FieldType> dataTypes,
int length,
TiffDirectoryType exifDirectory) |
TagInfo(String name,
int tag,
List<FieldType> dataTypes,
int length,
TiffDirectoryType exifDirectory,
boolean isOffset) |
Modifier and Type | Method and Description |
---|---|
byte[] |
encodeValue(FieldType fieldType,
Object value,
ByteOrder byteOrder) |
String |
getDescription() |
Object |
getValue(TiffField entry) |
boolean |
isOffset() |
boolean |
isText() |
String |
toString() |
public static final int LENGTH_UNKNOWN
public final String name
public final int tag
public final int length
public final TiffDirectoryType directoryType
public TagInfo(String name, int tag, FieldType dataType, int length, TiffDirectoryType exifDirectory)
public TagInfo(String name, int tag, FieldType dataType, int length, TiffDirectoryType exifDirectory, boolean isOffset)
public TagInfo(String name, int tag, List<FieldType> dataTypes, int length, TiffDirectoryType exifDirectory)
public TagInfo(String name, int tag, List<FieldType> dataTypes, int length, TiffDirectoryType exifDirectory, boolean isOffset)
public Object getValue(TiffField entry) throws ImageReadException
entry
- the TIFF field whose value to returnImageReadException
- thrown by subclassespublic byte[] encodeValue(FieldType fieldType, Object value, ByteOrder byteOrder) throws ImageWriteException
ImageWriteException
public String getDescription()
public boolean isOffset()
public boolean isText()
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.