IptcReader Class Reference

Inherits com::drew::metadata::MetadataReader.

Collaboration diagram for IptcReader:

Collaboration graph
[legend]

List of all members.

Public Member Functions

Metadata extract (Metadata metadata)
Metadata extract ()
 IptcReader (byte[] data)
 IptcReader (File jpegFile) throws JpegProcessingException, FileNotFoundException

Private Member Functions

int get32Bits (int offset) throws MetadataException
void processTag (Directory directory, int directoryType, int tagType, int offset, int tagByteCount)

Private Attributes

final byte[] _data


Constructor & Destructor Documentation

IptcReader ( File  jpegFile  )  throws JpegProcessingException, FileNotFoundException

Creates a new IptcReader for the specified Jpeg jpegFile.

IptcReader ( byte[]  data  ) 


Member Function Documentation

Metadata extract ( Metadata  metadata  ) 

Performs the Exif data extraction, adding found values to the specified instance of Metadata.

Implements MetadataReader.

Metadata extract (  ) 

Performs the Exif data extraction, returning a new instance of Metadata.

Implements MetadataReader.

int get32Bits ( int  offset  )  throws MetadataException [private]

Returns an int calculated from two bytes of data at the specified offset (MSB, LSB).

Parameters:
offset position within the data buffer to read first byte
Returns:
the 32 bit int value, between 0x0000 and 0xFFFF

void processTag ( Directory  directory,
int  directoryType,
int  tagType,
int  offset,
int  tagByteCount 
) [private]

This method serves as marsheller of objects for dataset. It converts from IPTC octets to relevant java object.


Member Data Documentation

final byte [] _data [private]

The Iptc data segment.


The documentation for this class was generated from the following file:

Generated on Sat May 26 06:42:30 2012 for Project Wonder by  doxygen 1.5.8