Package com.drew.imaging.jpeg
Interface JpegSegmentMetadataReader
-
- All Known Implementing Classes:
AdobeJpegReader
,DuckyReader
,ExifReader
,IccReader
,IptcReader
,JfifReader
,JpegCommentReader
,JpegDhtReader
,JpegDnlReader
,JpegReader
,PhotoshopReader
,XmpReader
public interface JpegSegmentMetadataReader
Defines an object that extracts metadata from in JPEG segments.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.Iterable<JpegSegmentType>
getSegmentTypes()
Gets the set of JPEG segment types that this reader is interested in.void
readJpegSegments(java.lang.Iterable<byte[]> segments, Metadata metadata, JpegSegmentType segmentType)
Extracts metadata from all instances of a particular JPEG segment type.
-
-
-
Method Detail
-
getSegmentTypes
java.lang.Iterable<JpegSegmentType> getSegmentTypes()
Gets the set of JPEG segment types that this reader is interested in.
-
readJpegSegments
void readJpegSegments(java.lang.Iterable<byte[]> segments, Metadata metadata, JpegSegmentType segmentType)
Extracts metadata from all instances of a particular JPEG segment type.- 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.
-
-