JpegReader Class Reference

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

Collaboration diagram for JpegReader:

Collaboration graph
[legend]

List of all members.

Public Member Functions

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

Private Member Functions

int get16Bits (int offset) throws MetadataException
int get32Bits (int offset) throws MetadataException

Private Attributes

final byte[] _data


Detailed Description

Created by IntelliJ IDEA. User: Darrell Silver www.darrellsilver.com Date: Aug 2, 2003
Author:
Darrell Silver http://www.darrellsilver.com

Constructor & Destructor Documentation

JpegReader ( File  jpegFile  )  throws JpegProcessingException, FileNotFoundException

Creates a new JpegReader for the specified Jpeg jpegFile.

JpegReader ( byte[]  data  ) 


Member Function Documentation

Metadata extract ( Metadata  metadata  ) 

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

Implements MetadataReader.

Metadata extract (  ) 

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

Implements MetadataReader.

int get16Bits ( int  offset  )  throws MetadataException [private]

Returns an int calculated from one byte of data at the specified offset.

Parameters:
offset position within the data buffer to read byte
Returns:
the 16 bit int value, between 0x00 and 0xFF

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


Member Data Documentation

final byte [] _data [private]

The SOF0 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