|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.drew.metadata.iptc.IptcReader
public class IptcReader
Decodes IPTC binary data, populating a Metadata object with tag values in an IptcDirectory.
| Field Summary | |
|---|---|
private byte[] |
_data
The Iptc data segment. |
| Constructor Summary | |
|---|---|
IptcReader(byte[] data)
Creates an IptcReader for the given IPTC data segment. |
|
IptcReader(File jpegFile)
Deprecated. Not all files will be Jpegs! Use a constructor that provides the IPTC segment in isolation. |
|
IptcReader(InputStream jpegInputStream)
Deprecated. Not all files will be Jpegs! Use a constructor that provides the IPTC segment in isolation. |
|
| Method Summary | |
|---|---|
Metadata |
extract()
Performs the Exif data extraction, returning a new instance of Metadata. |
Metadata |
extract(Metadata metadata)
Performs the Exif data extraction, adding found values to the specified instance of Metadata. |
private int |
get32Bits(int offset)
Returns an int calculated from two bytes of data at the specified offset (MSB, LSB). |
private void |
processTag(Directory directory,
int directoryType,
int tagType,
int offset,
int tagByteCount)
This method serves as marsheller of objects for dataset. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private final byte[] _data
| Constructor Detail |
|---|
public IptcReader(File jpegFile)
throws JpegProcessingException
JpegProcessingException
public IptcReader(InputStream jpegInputStream)
throws JpegProcessingException
jpegInputStream - JPEG stream. Stream will be closed.
JpegProcessingExceptionpublic IptcReader(byte[] data)
| Method Detail |
|---|
public Metadata extract()
Metadata.
extract in interface MetadataReaderpublic Metadata extract(Metadata metadata)
Metadata.
extract in interface MetadataReader
private int get32Bits(int offset)
throws MetadataException
offset - position within the data buffer to read first byte
MetadataException
private void processTag(Directory directory,
int directoryType,
int tagType,
int offset,
int tagByteCount)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||