Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

non_com.media.jai.codec.jpeg
Class JPEGCodec  view JPEGCodec download JPEGCodec.java

java.lang.Object
  extended bynon_com.media.jai.codec.ImageCodec
      extended bynon_com.media.jai.codec.jpeg.JPEGCodec

public final class JPEGCodec
extends non_com.media.jai.codec.ImageCodec


Field Summary
 
Fields inherited from class non_com.media.jai.codec.ImageCodec
 
Constructor Summary
JPEGCodec()
          Constructor for the JPEGCodec object
 
Method Summary
 boolean canEncodeImage(java.awt.image.RenderedImage im, non_com.media.jai.codec.ImageEncodeParam param)
          Description of the Method
protected  non_com.media.jai.codec.ImageDecoder createImageDecoder(java.io.File src, non_com.media.jai.codec.ImageDecodeParam param)
          Returns an implementation of the ImageDecoder interface appropriate for that codec.
protected  non_com.media.jai.codec.ImageDecoder createImageDecoder(java.io.InputStream src, non_com.media.jai.codec.ImageDecodeParam param)
          Returns an implementation of the ImageDecoder interface appropriate for that codec.
protected  non_com.media.jai.codec.ImageDecoder createImageDecoder(non_com.media.jai.codec.SeekableStream src, non_com.media.jai.codec.ImageDecodeParam param)
          In a concrete subclass of ImageCodec, returns an implementation of the ImageDecoder interface appropriate for that codec.
protected  non_com.media.jai.codec.ImageEncoder createImageEncoder(java.io.OutputStream dst, non_com.media.jai.codec.ImageEncodeParam param)
          In a concrete subclass of ImageCodec, returns an implementation of the ImageEncoder interface appropriate for that codec.
 java.lang.Class getDecodeParamClass()
          Gets the DecodeParamClass attribute of the JPEGCodec object
 java.lang.Class getEncodeParamClass()
          Gets the EncodeParamClass attribute of the JPEGCodec object
 java.lang.String getFormatName()
          Gets the FormatName attribute of the JPEGCodec object
 int getNumHeaderBytes()
          Gets the NumHeaderBytes attribute of the JPEGCodec object
 boolean isFormatRecognized(byte[] header)
          Gets the FormatRecognized attribute of the JPEGCodec object
 
Methods inherited from class non_com.media.jai.codec.ImageCodec
createComponentColorModel, createGrayIndexColorModel, createImageDecoder, createImageDecoder, createImageDecoder, createImageEncoder, getCodec, getCodecs, getDecoderNames, getEncoderNames, isFormatRecognized, registerCodec, unregisterCodec
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JPEGCodec

public JPEGCodec()
Constructor for the JPEGCodec object

Method Detail

getFormatName

public java.lang.String getFormatName()
Gets the FormatName attribute of the JPEGCodec object


getEncodeParamClass

public java.lang.Class getEncodeParamClass()
Gets the EncodeParamClass attribute of the JPEGCodec object


getDecodeParamClass

public java.lang.Class getDecodeParamClass()
Gets the DecodeParamClass attribute of the JPEGCodec object


getNumHeaderBytes

public int getNumHeaderBytes()
Gets the NumHeaderBytes attribute of the JPEGCodec object


isFormatRecognized

public boolean isFormatRecognized(byte[] header)
Gets the FormatRecognized attribute of the JPEGCodec object


canEncodeImage

public boolean canEncodeImage(java.awt.image.RenderedImage im,
                              non_com.media.jai.codec.ImageEncodeParam param)
Description of the Method


createImageEncoder

protected non_com.media.jai.codec.ImageEncoder createImageEncoder(java.io.OutputStream dst,
                                                                  non_com.media.jai.codec.ImageEncodeParam param)
Description copied from class: non_com.media.jai.codec.ImageCodec
In a concrete subclass of ImageCodec, returns an implementation of the ImageEncoder interface appropriate for that codec.


createImageDecoder

protected non_com.media.jai.codec.ImageDecoder createImageDecoder(java.io.InputStream src,
                                                                  non_com.media.jai.codec.ImageDecodeParam param)
Description copied from class: non_com.media.jai.codec.ImageCodec
Returns an implementation of the ImageDecoder interface appropriate for that codec. Subclasses of ImageCodec may override this method if they wish to accept data directly from an InputStream ; otherwise, this method will convert the source into a backwards-seekable SeekableStream and call the appropriate version of createImageDecoder for that data type.

Instances of ImageCodec that do not require the ability to seek backwards in their source SeekableStream should override this method in order to avoid the default call to SeekableStream.wrapInputStream(src, true) .


createImageDecoder

protected non_com.media.jai.codec.ImageDecoder createImageDecoder(java.io.File src,
                                                                  non_com.media.jai.codec.ImageDecodeParam param)
                                                           throws java.io.IOException
Description copied from class: non_com.media.jai.codec.ImageCodec
Returns an implementation of the ImageDecoder interface appropriate for that codec. Subclasses of ImageCodec may override this method if they wish to accept data directly from a File ; otherwise, this method will convert the source into a SeekableStream and call the appropriate version of createImageDecoder for that data type.


createImageDecoder

protected non_com.media.jai.codec.ImageDecoder createImageDecoder(non_com.media.jai.codec.SeekableStream src,
                                                                  non_com.media.jai.codec.ImageDecodeParam param)
Description copied from class: non_com.media.jai.codec.ImageCodec
In a concrete subclass of ImageCodec, returns an implementation of the ImageDecoder interface appropriate for that codec.