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
public class TagInfo extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description java.util.List<FieldType>
dataTypes
TiffDirectoryType
directoryType
private boolean
isOffset
int
length
static int
LENGTH_UNKNOWN
java.lang.String
name
int
tag
-
Constructor Summary
Constructors Constructor Description TagInfo(java.lang.String name, int tag, java.util.List<FieldType> dataTypes, int length, TiffDirectoryType exifDirectory)
TagInfo(java.lang.String name, int tag, java.util.List<FieldType> dataTypes, int length, TiffDirectoryType exifDirectory, boolean isOffset)
TagInfo(java.lang.String name, int tag, FieldType dataType)
TagInfo(java.lang.String name, int tag, FieldType dataType, int length)
TagInfo(java.lang.String name, int tag, FieldType dataType, int length, TiffDirectoryType exifDirectory)
TagInfo(java.lang.String name, int tag, FieldType dataType, int length, TiffDirectoryType exifDirectory, boolean isOffset)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description byte[]
encodeValue(FieldType fieldType, java.lang.Object value, java.nio.ByteOrder byteOrder)
java.lang.String
getDescription()
java.lang.Object
getValue(TiffField entry)
boolean
isOffset()
boolean
isText()
java.lang.String
toString()
-
-
-
Field Detail
-
LENGTH_UNKNOWN
public static final int LENGTH_UNKNOWN
- See Also:
- Constant Field Values
-
name
public final java.lang.String name
-
tag
public final int tag
-
dataTypes
public final java.util.List<FieldType> dataTypes
-
length
public final int length
-
directoryType
public final TiffDirectoryType directoryType
-
isOffset
private final boolean isOffset
-
-
Constructor Detail
-
TagInfo
public TagInfo(java.lang.String name, int tag, FieldType dataType, int length, TiffDirectoryType exifDirectory)
-
TagInfo
public TagInfo(java.lang.String name, int tag, FieldType dataType, int length, TiffDirectoryType exifDirectory, boolean isOffset)
-
TagInfo
public TagInfo(java.lang.String name, int tag, FieldType dataType, int length)
-
TagInfo
public TagInfo(java.lang.String name, int tag, FieldType dataType)
-
TagInfo
public TagInfo(java.lang.String name, int tag, java.util.List<FieldType> dataTypes, int length, TiffDirectoryType exifDirectory)
-
TagInfo
public TagInfo(java.lang.String name, int tag, java.util.List<FieldType> dataTypes, int length, TiffDirectoryType exifDirectory, boolean isOffset)
-
-
Method Detail
-
getValue
public java.lang.Object getValue(TiffField entry) throws ImageReadException
- 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, java.lang.Object value, java.nio.ByteOrder byteOrder) throws ImageWriteException
- Throws:
ImageWriteException
-
getDescription
public java.lang.String getDescription()
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
isOffset
public boolean isOffset()
-
isText
public boolean isText()
-
-