public class IptcReader extends Object implements JpegSegmentMetadataReader
Metadata
object with tag values in an IptcDirectory
.
http://www.iptc.org/std/IIM/4.1/specification/IIMV4.1.pdf
Constructor and Description |
---|
IptcReader() |
Modifier and Type | Method and Description |
---|---|
void |
extract(SequentialReader reader,
Metadata metadata,
long length)
Performs the IPTC data extraction, adding found values to the specified instance of
Metadata . |
void |
extract(SequentialReader reader,
Metadata metadata,
long length,
Directory parentDirectory)
Performs the IPTC data extraction, adding found values to the specified instance of
Metadata . |
Iterable<JpegSegmentType> |
getSegmentTypes()
Gets the set of JPEG segment types that this reader is interested in.
|
void |
readJpegSegments(Iterable<byte[]> segments,
Metadata metadata,
JpegSegmentType segmentType)
Extracts metadata from all instances of a particular JPEG segment type.
|
public Iterable<JpegSegmentType> getSegmentTypes()
JpegSegmentMetadataReader
getSegmentTypes
in interface JpegSegmentMetadataReader
public void readJpegSegments(Iterable<byte[]> segments, Metadata metadata, JpegSegmentType segmentType)
JpegSegmentMetadataReader
readJpegSegments
in interface JpegSegmentMetadataReader
segments
- A sequence of byte arrays from which the metadata should be extracted. These are in the order
encountered in the original file.metadata
- The Metadata
object into which extracted values should be merged.segmentType
- The JpegSegmentType
being read.public void extract(SequentialReader reader, Metadata metadata, long length)
Metadata
.public void extract(SequentialReader reader, Metadata metadata, long length, Directory parentDirectory)
Metadata
.Copyright © 2010 - 2020 Adobe. All Rights Reserved