Class TagInfoGpsText
java.lang.Object
org.apache.commons.imaging.formats.tiff.taginfos.TagInfo
org.apache.commons.imaging.formats.tiff.taginfos.TagInfoGpsText
Used by some GPS tags and the EXIF user comment tag, this badly documented value is meant to contain the text encoding in the first 8 bytes followed by the
non-null-terminated text in an unknown byte order.
-
Field Summary
Fields inherited from class org.apache.commons.imaging.formats.tiff.taginfos.TagInfo
dataTypes, directoryType, length, LENGTH_UNKNOWN, name, tag -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbyte[]encodeValue(AbstractFieldType abstractFieldType, Object value, ByteOrder byteOrder) booleanisText()Methods inherited from class org.apache.commons.imaging.formats.tiff.taginfos.TagInfo
getDescription, isOffset, toString
-
Constructor Details
-
TagInfoGpsText
-
-
Method Details
-
encodeValue
public byte[] encodeValue(AbstractFieldType abstractFieldType, Object value, ByteOrder byteOrder) throws ImagingException - Overrides:
encodeValuein classTagInfo- Throws:
ImagingException
-
getValue
- Overrides:
getValuein classTagInfo- Parameters:
entry- the TIFF field whose value to return- Returns:
- the value of the TIFF field
- Throws:
ImagingException- thrown by subclasses
-
isText
-