Class TagInfoXpString
- java.lang.Object
-
- org.apache.commons.imaging.formats.tiff.taginfos.TagInfo
-
- org.apache.commons.imaging.formats.tiff.taginfos.TagInfoXpString
-
public class TagInfoXpString extends TagInfo
Windows XP onwards store some tags using UTF-16LE, but the field type is byte - here we deal with this.
-
-
Field Summary
-
Fields inherited from class org.apache.commons.imaging.formats.tiff.taginfos.TagInfo
dataTypes, directoryType, length, LENGTH_UNKNOWN, name, tag
-
-
Constructor Summary
Constructors Constructor Description TagInfoXpString(java.lang.String name, int tag, TiffDirectoryType directoryType)
-
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.StringgetValue(TiffField entry)-
Methods inherited from class org.apache.commons.imaging.formats.tiff.taginfos.TagInfo
getDescription, isOffset, isText, toString
-
-
-
-
Constructor Detail
-
TagInfoXpString
public TagInfoXpString(java.lang.String name, int tag, TiffDirectoryType directoryType)
-
-
Method Detail
-
encodeValue
public byte[] encodeValue(AbstractFieldType abstractFieldType, java.lang.Object value, java.nio.ByteOrder byteOrder) throws ImagingException
- Overrides:
encodeValuein classTagInfo- Throws:
ImagingException
-
getValue
public java.lang.String getValue(TiffField entry) throws ImagingException
- Overrides:
getValuein classTagInfo- Parameters:
entry- the TIFF field whose value to return- Returns:
- the value of the TIFF field
- Throws:
ImagingException- thrown by subclasses
-
-