Package com.drew.metadata.iptc
Class IptcReader
- java.lang.Object
-
- com.drew.metadata.iptc.IptcReader
-
- All Implemented Interfaces:
JpegSegmentMetadataReader
public class IptcReader extends java.lang.Object implements JpegSegmentMetadataReader
Decodes IPTC binary data, populating aMetadataobject with tag values in anIptcDirectory.http://www.iptc.org/std/IIM/4.1/specification/IIMV4.1.pdf
-
-
Constructor Summary
Constructors Constructor Description IptcReader()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidextract(SequentialReader reader, Metadata metadata, long length)Performs the IPTC data extraction, adding found values to the specified instance ofMetadata.voidextract(SequentialReader reader, Metadata metadata, long length, Directory parentDirectory)Performs the IPTC data extraction, adding found values to the specified instance ofMetadata.java.lang.Iterable<JpegSegmentType>getSegmentTypes()Gets the set of JPEG segment types that this reader is interested in.voidreadJpegSegments(java.lang.Iterable<byte[]> segments, Metadata metadata, JpegSegmentType segmentType)Extracts metadata from all instances of a particular JPEG segment type.
-
-
-
Method Detail
-
getSegmentTypes
public java.lang.Iterable<JpegSegmentType> getSegmentTypes()
Description copied from interface:JpegSegmentMetadataReaderGets the set of JPEG segment types that this reader is interested in.- Specified by:
getSegmentTypesin interfaceJpegSegmentMetadataReader
-
readJpegSegments
public void readJpegSegments(java.lang.Iterable<byte[]> segments, Metadata metadata, JpegSegmentType segmentType)Description copied from interface:JpegSegmentMetadataReaderExtracts metadata from all instances of a particular JPEG segment type.- Specified by:
readJpegSegmentsin interfaceJpegSegmentMetadataReader- Parameters:
segments- A sequence of byte arrays from which the metadata should be extracted. These are in the order encountered in the original file.metadata- TheMetadataobject into which extracted values should be merged.segmentType- TheJpegSegmentTypebeing read.
-
extract
public void extract(SequentialReader reader, Metadata metadata, long length)
Performs the IPTC data extraction, adding found values to the specified instance ofMetadata.
-
extract
public void extract(SequentialReader reader, Metadata metadata, long length, Directory parentDirectory)
Performs the IPTC data extraction, adding found values to the specified instance ofMetadata.
-
-