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.
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final TagInfoGpsText.TextEncoding
private static final TagInfoGpsText.TextEncoding
private static final TagInfoGpsText.TextEncoding
private static final TagInfoGpsText.TextEncoding
private static final TagInfoGpsText.TextEncoding
private static final TagInfoGpsText.TextEncoding[]
Fields inherited from class org.apache.commons.imaging.formats.tiff.taginfos.TagInfo
dataTypes, directoryType, length, LENGTH_UNKNOWN, name, tag
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.apache.commons.imaging.formats.tiff.taginfos.TagInfo
getDescription, isOffset, toString
-
Field Details
-
TEXT_ENCODING_ASCII
-
TEXT_ENCODING_JIS
-
TEXT_ENCODING_UNICODE_LE
-
TEXT_ENCODING_UNICODE_BE
-
TEXT_ENCODING_UNDEFINED
-
TEXT_ENCODINGS
-
-
Constructor Details
-
TagInfoGpsText
-
-
Method Details
-
isText
public boolean isText() -
encodeValue
public byte[] encodeValue(FieldType fieldType, Object value, ByteOrder byteOrder) throws ImageWriteException - Overrides:
encodeValue
in classTagInfo
- Throws:
ImageWriteException
-
getValue
- Overrides:
getValue
in classTagInfo
- Parameters:
entry
- the TIFF field whose value to return- Returns:
- the value of the TIFF field
- Throws:
ImageReadException
- thrown by subclasses
-