Package com.drew.metadata.icc
Class IccReader
- java.lang.Object
-
- com.drew.metadata.icc.IccReader
-
- All Implemented Interfaces:
JpegSegmentMetadataReader
,MetadataReader
public class IccReader extends java.lang.Object implements JpegSegmentMetadataReader, MetadataReader
Reads an ICC profile.More information about ICC:
- http://en.wikipedia.org/wiki/ICC_profile
- http://www.sno.phy.queensu.ca/~phil/exiftool/TagNames/ICC_Profile.html
- https://developer.apple.com/library/mac/samplecode/ImageApp/Listings/ICC_h.html
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
JPEG_SEGMENT_PREAMBLE
-
Constructor Summary
Constructors Constructor Description IccReader()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
extract(RandomAccessReader reader, Metadata metadata)
Extracts metadata fromreader
and merges it into the specifiedMetadata
object.void
extract(RandomAccessReader reader, Metadata metadata, Directory parentDirectory)
java.lang.Iterable<JpegSegmentType>
getSegmentTypes()
Gets the set of JPEG segment types that this reader is interested in.static java.lang.String
getStringFromInt32(int d)
void
readJpegSegments(java.lang.Iterable<byte[]> segments, Metadata metadata, JpegSegmentType segmentType)
Extracts metadata from all instances of a particular JPEG segment type.
-
-
-
Field Detail
-
JPEG_SEGMENT_PREAMBLE
public static final java.lang.String JPEG_SEGMENT_PREAMBLE
- See Also:
- Constant Field Values
-
-
Method Detail
-
getSegmentTypes
public java.lang.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(java.lang.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(RandomAccessReader reader, Metadata metadata)
Description copied from interface:MetadataReader
Extracts metadata fromreader
and merges it into the specifiedMetadata
object.- Specified by:
extract
in interfaceMetadataReader
- Parameters:
reader
- TheRandomAccessReader
from which the metadata should be extracted.metadata
- TheMetadata
object into which extracted values should be merged.
-
extract
public void extract(RandomAccessReader reader, Metadata metadata, Directory parentDirectory)
-
getStringFromInt32
public static java.lang.String getStringFromInt32(int d)
-
-