|
|||||||||
| Home >> All >> non_com >> media >> jai >> codec >> [ jpeg overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
non_com.media.jai.codec.jpeg
Class JPEGCodec

java.lang.Objectnon_com.media.jai.codec.ImageCodec
non_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 theImageEncoderinterface 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
ImageDecoderinterface appropriate for that codec. Subclasses ofImageCodecmay override this method if they wish to accept data directly from anInputStream; otherwise, this method will convert the source into a backwards-seekableSeekableStreamand call the appropriate version ofcreateImageDecoderfor that data type.Instances of
ImageCodecthat do not require the ability to seek backwards in their sourceSeekableStreamshould override this method in order to avoid the default call toSeekableStream.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
ImageDecoderinterface appropriate for that codec. Subclasses ofImageCodecmay override this method if they wish to accept data directly from aFile; otherwise, this method will convert the source into aSeekableStreamand call the appropriate version ofcreateImageDecoderfor 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 theImageDecoderinterface appropriate for that codec.
|
|||||||||
| Home >> All >> non_com >> media >> jai >> codec >> [ jpeg overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
JAVADOC