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

java.lang.Object
  extended byorg.jboss.media.format.EmbeddedMediaFormat (src) 
      extended byorg.jboss.media.format.image.iio.IIOMediaFormat (src) 
          extended byorg.jboss.media.format.image.iio.JPEGMediaFormat
All Implemented Interfaces:
MediaFormat (src) , java.io.Serializable

public class JPEGMediaFormat
extends IIOMediaFormat (src)

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

See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.jboss.media.format.image.iio.IIOMediaFormat (src)
imageReader
 
Constructor Summary
JPEGMediaFormat(javax.imageio.ImageReader imageReader)
          Constructor.
 
Method Summary
 MediaHeader (src) extractHeader(java.io.InputStream content)
          Extracts a media header instance from the given media content and returns it.
 
Methods inherited from class org.jboss.media.format.image.iio.IIOMediaFormat (src)
extractImageMetadata, getDefaultMimeType, isStreamingDesirable
 
Methods inherited from class org.jboss.media.format.EmbeddedMediaFormat (src)
assembleContent, disassembleContent, extractProxy, isEmbedded
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JPEGMediaFormat

public JPEGMediaFormat(javax.imageio.ImageReader imageReader)
Constructor.

Parameters:
imageReader -
Method Detail

extractHeader

public MediaHeader (src)  extractHeader(java.io.InputStream content)
                          throws MediaException (src) 
Description copied from interface: MediaFormat (src)
Extracts a media header instance from the given media content and returns it. The information presented by the header is up to the implementation of the media format bean, and the information returned can therefore be the complete header information as defined in the relevant media format standard, no information at all, or something in between. However, implementers are encouraged to return header information as complete as possible, as such information can be highly useful for format specific algorithms and optimizations.

Please note that the given input stream is not closed once the operation is successfully completed.

Specified by:
extractHeader in interface MediaFormat (src)
Specified by:
extractHeader in class IIOMediaFormat (src)
Throws:
MediaException (src)
See Also:
javax.emb.MediaFormat#extractHeader(javax.emb.Media)