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 List<AbstractFieldType> final TiffDirectoryTypefinal intstatic final intfinal Stringfinal int -
Constructor Summary
ConstructorsConstructorDescriptionTagInfo(String name, int tag, List<AbstractFieldType> dataTypes, int length, TiffDirectoryType exifDirectory) TagInfo(String name, int tag, List<AbstractFieldType> dataTypes, int length, TiffDirectoryType exifDirectory, boolean isOffset) TagInfo(String name, int tag, AbstractFieldType dataType) TagInfo(String name, int tag, AbstractFieldType dataType, int length) TagInfo(String name, int tag, AbstractFieldType dataType, int length, TiffDirectoryType exifDirectory) TagInfo(String name, int tag, AbstractFieldType dataType, int length, TiffDirectoryType exifDirectory, boolean isOffset) -
Method Summary
Modifier and TypeMethodDescriptionbyte[]encodeValue(AbstractFieldType abstractFieldType, Object value, ByteOrder byteOrder) booleanisOffset()booleanisText()toString()
-
Field Details
-
LENGTH_UNKNOWN
- See Also:
-
name
-
tag
-
dataTypes
-
length
-
directoryType
-
-
Constructor Details
-
TagInfo
-
TagInfo
-
TagInfo
public TagInfo(String name, int tag, AbstractFieldType dataType, int length, TiffDirectoryType exifDirectory) -
TagInfo
public TagInfo(String name, int tag, AbstractFieldType dataType, int length, TiffDirectoryType exifDirectory, boolean isOffset) -
TagInfo
public TagInfo(String name, int tag, List<AbstractFieldType> dataTypes, int length, TiffDirectoryType exifDirectory) -
TagInfo
public TagInfo(String name, int tag, List<AbstractFieldType> dataTypes, int length, TiffDirectoryType exifDirectory, boolean isOffset)
-
-
Method Details
-
encodeValue
public byte[] encodeValue(AbstractFieldType abstractFieldType, Object value, ByteOrder byteOrder) throws ImagingException - Throws:
ImagingException
-
getDescription
-
getValue
- Parameters:
entry- the TIFF field whose value to return- Returns:
- the value of the TIFF field
- Throws:
ImagingException- thrown by subclasses
-
isOffset
-
isText
-
toString
-