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 classTiffImageMetadata.Directorystatic classTiffImageMetadata.GpsInfostatic classTiffImageMetadata.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 TiffContentscontents
-
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
-
findDirectory
public TiffDirectory findDirectory(int directoryType)
-
findField
public TiffField findField(TagInfo tagInfo) throws ImagingException
- Throws:
ImagingException
-
findField
public TiffField findField(TagInfo tagInfo, boolean exactDirectoryMatch) throws ImagingException
- Throws:
ImagingException
-
getAllFields
public java.util.List<TiffField> getAllFields()
-
getDirectories
public java.util.List<? extends ImageMetadata.ImageMetadataItem> getDirectories()
-
getFieldValue
public java.lang.Object getFieldValue(TagInfo tag) throws ImagingException
- Throws:
ImagingException
-
getFieldValue
public java.lang.String[] getFieldValue(TagInfoAscii tag) throws ImagingException
- Throws:
ImagingException
-
getFieldValue
public byte[] getFieldValue(TagInfoByte tag) throws ImagingException
- Throws:
ImagingException
-
getFieldValue
public double[] getFieldValue(TagInfoDoubles tag) throws ImagingException
- Throws:
ImagingException
-
getFieldValue
public float[] getFieldValue(TagInfoFloats tag) throws ImagingException
- Throws:
ImagingException
-
getFieldValue
public java.lang.String getFieldValue(TagInfoGpsText tag) throws ImagingException
- Throws:
ImagingException
-
getFieldValue
public int[] getFieldValue(TagInfoLongs tag) throws ImagingException
- Throws:
ImagingException
-
getFieldValue
public RationalNumber[] getFieldValue(TagInfoRationals tag) throws ImagingException
- Throws:
ImagingException
-
getFieldValue
public byte[] getFieldValue(TagInfoSBytes tag) throws ImagingException
- Throws:
ImagingException
-
getFieldValue
public short[] getFieldValue(TagInfoShorts tag) throws ImagingException
- Throws:
ImagingException
-
getFieldValue
public int[] getFieldValue(TagInfoSLongs tag) throws ImagingException
- Throws:
ImagingException
-
getFieldValue
public RationalNumber[] getFieldValue(TagInfoSRationals tag) throws ImagingException
- Throws:
ImagingException
-
getFieldValue
public short[] getFieldValue(TagInfoSShorts tag) throws ImagingException
- Throws:
ImagingException
-
getFieldValue
public java.lang.String getFieldValue(TagInfoXpString tag) throws ImagingException
- Throws:
ImagingException
-
getGpsInfo
public TiffImageMetadata.GpsInfo getGpsInfo() throws ImagingException
- Throws:
ImagingException
-
getItems
public java.util.List<? extends ImageMetadata.ImageMetadataItem> getItems()
- Specified by:
getItemsin interfaceImageMetadata- Overrides:
getItemsin classGenericImageMetadata
-
getOutputSet
public TiffOutputSet getOutputSet() throws ImagingException
- Throws:
ImagingException
-
-