public class PhotoshopReader extends Object implements JpegSegmentMetadataReader
PhotoshopDirectory
and a IptcDirectory
.Constructor and Description |
---|
PhotoshopReader() |
Modifier and Type | Method and Description |
---|---|
void |
extract(SequentialReader reader,
int length,
Metadata 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, int length, Metadata metadata)
Copyright © 2010 - 2020 Adobe. All Rights Reserved