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<AbstractFieldType>dataTypesTiffDirectoryTypedirectoryTypeprivate booleanisOffsetintlengthstatic intLENGTH_UNKNOWNjava.lang.Stringnameinttag
-
Constructor Summary
Constructors Constructor Description TagInfo(java.lang.String name, int tag, java.util.List<AbstractFieldType> dataTypes, int length, TiffDirectoryType exifDirectory)TagInfo(java.lang.String name, int tag, java.util.List<AbstractFieldType> dataTypes, int length, TiffDirectoryType exifDirectory, boolean isOffset)TagInfo(java.lang.String name, int tag, AbstractFieldType dataType)TagInfo(java.lang.String name, int tag, AbstractFieldType dataType, int length)TagInfo(java.lang.String name, int tag, AbstractFieldType dataType, int length, TiffDirectoryType exifDirectory)TagInfo(java.lang.String name, int tag, AbstractFieldType dataType, int length, TiffDirectoryType exifDirectory, boolean isOffset)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description byte[]encodeValue(AbstractFieldType abstractFieldType, java.lang.Object value, java.nio.ByteOrder byteOrder)java.lang.StringgetDescription()java.lang.ObjectgetValue(TiffField entry)booleanisOffset()booleanisText()java.lang.StringtoString()
-
-
-
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<AbstractFieldType> 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, AbstractFieldType dataType)
-
TagInfo
public TagInfo(java.lang.String name, int tag, AbstractFieldType dataType, int length)
-
TagInfo
public TagInfo(java.lang.String name, int tag, AbstractFieldType dataType, int length, TiffDirectoryType exifDirectory)
-
TagInfo
public TagInfo(java.lang.String name, int tag, AbstractFieldType dataType, int length, TiffDirectoryType exifDirectory, boolean isOffset)
-
TagInfo
public TagInfo(java.lang.String name, int tag, java.util.List<AbstractFieldType> dataTypes, int length, TiffDirectoryType exifDirectory)
-
TagInfo
public TagInfo(java.lang.String name, int tag, java.util.List<AbstractFieldType> dataTypes, int length, TiffDirectoryType exifDirectory, boolean isOffset)
-
-
Method Detail
-
encodeValue
public byte[] encodeValue(AbstractFieldType abstractFieldType, java.lang.Object value, java.nio.ByteOrder byteOrder) throws ImagingException
- Throws:
ImagingException
-
getDescription
public java.lang.String getDescription()
-
getValue
public java.lang.Object getValue(TiffField entry) throws ImagingException
- Parameters:
entry- the TIFF field whose value to return- Returns:
- the value of the TIFF field
- Throws:
ImagingException- thrown by subclasses
-
isOffset
public boolean isOffset()
-
isText
public boolean isText()
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-