Package com.drew.metadata.adobe
Class AdobeJpegReader
- java.lang.Object
-
- com.drew.metadata.adobe.AdobeJpegReader
-
- All Implemented Interfaces:
JpegSegmentMetadataReader
public class AdobeJpegReader extends Object implements JpegSegmentMetadataReader
Decodes Adobe formatted data stored in JPEG files, normally in the APPE (App14) segment.
-
-
Constructor Summary
Constructors Constructor Description AdobeJpegReader()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
extract(SequentialReader reader, 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.
-
-
-
Field Detail
-
PREAMBLE
public static final String PREAMBLE
- See Also:
- Constant Field Values
-
-
Method Detail
-
getSegmentTypes
public Iterable<JpegSegmentType> getSegmentTypes()
Description copied from interface:JpegSegmentMetadataReader
Gets the set of JPEG segment types that this reader is interested in.- Specified by:
getSegmentTypes
in interfaceJpegSegmentMetadataReader
-
readJpegSegments
public void readJpegSegments(Iterable<byte[]> segments, Metadata metadata, JpegSegmentType segmentType)
Description copied from interface:JpegSegmentMetadataReader
Extracts metadata from all instances of a particular JPEG segment type.- Specified by:
readJpegSegments
in 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
- TheMetadata
object into which extracted values should be merged.segmentType
- TheJpegSegmentType
being read.
-
extract
public void extract(SequentialReader reader, Metadata metadata)
-
-