Class TiffImageMetadata
- java.lang.Object
-
- org.apache.commons.imaging.common.GenericImageMetadata
-
- org.apache.commons.imaging.formats.tiff.TiffImageMetadata
-
- All Implemented Interfaces:
ImageMetadata
public class TiffImageMetadata extends GenericImageMetadata
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
TiffImageMetadata.Directory
static class
TiffImageMetadata.GPSInfo
static class
TiffImageMetadata.TiffMetadataItem
-
Nested classes/interfaces inherited from class org.apache.commons.imaging.common.GenericImageMetadata
GenericImageMetadata.GenericImageMetadataItem
-
Nested classes/interfaces inherited from interface org.apache.commons.imaging.common.ImageMetadata
ImageMetadata.ImageMetadataItem
-
-
Field Summary
Fields Modifier and Type Field Description TiffContents
contents
-
Constructor Summary
Constructors Constructor Description TiffImageMetadata(TiffContents contents)
-
Method Summary
-
Methods inherited from class org.apache.commons.imaging.common.GenericImageMetadata
add, add, toString, toString
-
-
-
-
Field Detail
-
contents
public final TiffContents contents
-
-
Constructor Detail
-
TiffImageMetadata
public TiffImageMetadata(TiffContents contents)
-
-
Method Detail
-
getDirectories
public java.util.List<? extends ImageMetadata.ImageMetadataItem> getDirectories()
-
getItems
public java.util.List<? extends ImageMetadata.ImageMetadataItem> getItems()
- Specified by:
getItems
in interfaceImageMetadata
- Overrides:
getItems
in classGenericImageMetadata
-
getOutputSet
public TiffOutputSet getOutputSet() throws ImageWriteException
- Throws:
ImageWriteException
-
findField
public TiffField findField(TagInfo tagInfo) throws ImageReadException
- Throws:
ImageReadException
-
findField
public TiffField findField(TagInfo tagInfo, boolean exactDirectoryMatch) throws ImageReadException
- Throws:
ImageReadException
-
getFieldValue
public java.lang.Object getFieldValue(TagInfo tag) throws ImageReadException
- Throws:
ImageReadException
-
getFieldValue
public byte[] getFieldValue(TagInfoByte tag) throws ImageReadException
- Throws:
ImageReadException
-
getFieldValue
public java.lang.String[] getFieldValue(TagInfoAscii tag) throws ImageReadException
- Throws:
ImageReadException
-
getFieldValue
public short[] getFieldValue(TagInfoShorts tag) throws ImageReadException
- Throws:
ImageReadException
-
getFieldValue
public int[] getFieldValue(TagInfoLongs tag) throws ImageReadException
- Throws:
ImageReadException
-
getFieldValue
public RationalNumber[] getFieldValue(TagInfoRationals tag) throws ImageReadException
- Throws:
ImageReadException
-
getFieldValue
public byte[] getFieldValue(TagInfoSBytes tag) throws ImageReadException
- Throws:
ImageReadException
-
getFieldValue
public short[] getFieldValue(TagInfoSShorts tag) throws ImageReadException
- Throws:
ImageReadException
-
getFieldValue
public int[] getFieldValue(TagInfoSLongs tag) throws ImageReadException
- Throws:
ImageReadException
-
getFieldValue
public RationalNumber[] getFieldValue(TagInfoSRationals tag) throws ImageReadException
- Throws:
ImageReadException
-
getFieldValue
public float[] getFieldValue(TagInfoFloats tag) throws ImageReadException
- Throws:
ImageReadException
-
getFieldValue
public double[] getFieldValue(TagInfoDoubles tag) throws ImageReadException
- Throws:
ImageReadException
-
getFieldValue
public java.lang.String getFieldValue(TagInfoGpsText tag) throws ImageReadException
- Throws:
ImageReadException
-
getFieldValue
public java.lang.String getFieldValue(TagInfoXpString tag) throws ImageReadException
- Throws:
ImageReadException
-
findDirectory
public TiffDirectory findDirectory(int directoryType)
-
getAllFields
public java.util.List<TiffField> getAllFields()
-
getGPS
public TiffImageMetadata.GPSInfo getGPS() throws ImageReadException
- Throws:
ImageReadException
-
-