org.jboss.media.format.image.iio
Class JPEGMediaHeader

java.lang.Object
  extended byorg.jboss.media.format.image.iio.IIOMediaHeader (src) 
      extended byorg.jboss.media.format.image.iio.JPEGMediaHeader
All Implemented Interfaces:
MediaHeader (src) , java.io.Serializable

public class JPEGMediaHeader
extends IIOMediaHeader (src)

JPEG MediaHeader based on the Java Image I/O API.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.jboss.media.format.image.iio.IIOMediaHeader (src)
imageMetadata, metadataRootNode
 
Constructor Summary
JPEGMediaHeader(javax.imageio.metadata.IIOMetadata imageMetadata)
          Constructor.
 
Method Summary
 java.lang.Object getField(java.lang.String fieldname)
          Returns the field with the given name downcast to Object.
 java.lang.String[] getFieldNames()
          Returns an array of Strings containing all the field names defined for the header.
 
Methods inherited from class org.jboss.media.format.image.iio.IIOMediaHeader (src)
getAttribute, getAttribute, getNode, getNode
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JPEGMediaHeader

public JPEGMediaHeader(javax.imageio.metadata.IIOMetadata imageMetadata)
Constructor.

Method Detail

getFieldNames

public java.lang.String[] getFieldNames()
Description copied from interface: MediaHeader (src)
Returns an array of Strings containing all the field names defined for the header.

Specified by:
getFieldNames in interface MediaHeader (src)
Specified by:
getFieldNames in class IIOMediaHeader (src)
See Also:
MediaHeader.getFieldNames()

getField

public java.lang.Object getField(java.lang.String fieldname)
Description copied from interface: MediaHeader (src)
Returns the field with the given name downcast to Object. If the field is modeled as a Java base type, an instance of the corresponding wrapper class has to be returned. The value null is returned if a field name is passed that is not defined for the receiver.

Specified by:
getField in interface MediaHeader (src)
Specified by:
getField in class IIOMediaHeader (src)
See Also:
MediaHeader.getField(java.lang.String)