Class TagInfo
java.lang.Object
org.apache.commons.imaging.formats.tiff.taginfos.TagInfo
- Direct Known Subclasses:
TagInfoAny,TagInfoAscii,TagInfoAsciiOrByte,TagInfoAsciiOrRational,TagInfoByte,TagInfoByteOrShort,TagInfoBytes,TagInfoDouble,TagInfoDoubles,TagInfoFloat,TagInfoFloats,TagInfoGpsText,TagInfoLong,TagInfoLongOrIFD,TagInfoLongs,TagInfoRational,TagInfoRationals,TagInfoSByte,TagInfoSBytes,TagInfoShort,TagInfoShortOrLong,TagInfoShortOrLongOrRational,TagInfoShortOrRational,TagInfoShorts,TagInfoSLong,TagInfoSLongs,TagInfoSRational,TagInfoSRationals,TagInfoSShort,TagInfoSShorts,TagInfoXpString
-
Field Summary
FieldsModifier and TypeFieldDescriptionfinal TiffDirectoryTypeprivate final booleanfinal intstatic final intfinal Stringfinal int -
Constructor Summary
ConstructorsConstructorDescriptionTagInfo(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) TagInfo(String name, int tag, FieldType dataType, int length, TiffDirectoryType exifDirectory) TagInfo(String name, int tag, FieldType dataType, int length, TiffDirectoryType exifDirectory, boolean isOffset) -
Method Summary
-
Field Details
-
LENGTH_UNKNOWN
public static final int LENGTH_UNKNOWN- See Also:
-
name
-
tag
public final int tag -
dataTypes
-
length
public final int length -
directoryType
-
isOffset
private final boolean isOffset
-
-
Constructor Details
-
TagInfo
public TagInfo(String name, int tag, FieldType dataType, int length, TiffDirectoryType exifDirectory) -
TagInfo
public TagInfo(String name, int tag, FieldType dataType, int length, TiffDirectoryType exifDirectory, boolean isOffset) -
TagInfo
-
TagInfo
-
TagInfo
public TagInfo(String name, int tag, List<FieldType> dataTypes, int length, TiffDirectoryType exifDirectory) -
TagInfo
public TagInfo(String name, int tag, List<FieldType> dataTypes, int length, TiffDirectoryType exifDirectory, boolean isOffset)
-
-
Method Details
-
getValue
- Parameters:
entry- the TIFF field whose value to return- Returns:
- the value of the TIFF field
- Throws:
ImageReadException- thrown by subclasses
-
encodeValue
public byte[] encodeValue(FieldType fieldType, Object value, ByteOrder byteOrder) throws ImageWriteException - Throws:
ImageWriteException
-
getDescription
-
toString
-
isOffset
public boolean isOffset() -
isText
public boolean isText()
-