|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.sun.image.codec.jpeg.JPEGCodec
This class is a factory for implementations of the JPEG Image Decoder/Encoder.
Note that the classes in the com.sun.image.codec.jpeg package are not part of the core Java APIs. They are a part of Sun's JDK and JRE distributions. Although other licensees may choose to distribute these classes, developers cannot depend on their availability in non-Sun implementations. We expect that equivalent functionality will eventually be available in a core API or standard extension.
JPEGImageDecoder
,
JPEGImageEncoder
Method Summary | |
static JPEGImageDecoder |
createJPEGDecoder(InputStream src)
This creates an instance of a JPEGImageDecoder that can be used to decode JPEG Data streams. |
static JPEGImageDecoder |
createJPEGDecoder(InputStream src,
JPEGDecodeParam jdp)
This creates an instance of a JPEGImageDecoder that can be used to decode JPEG Data streams. |
static JPEGImageEncoder |
createJPEGEncoder(OutputStream dest)
This creates an instance of a JPEGImageEncoder that can be used to encode image data as JPEG Data streams. |
static JPEGImageEncoder |
createJPEGEncoder(OutputStream dest,
JPEGEncodeParam jep)
This creates an instance of a JPEGImageEncoder that can be used to encode image data as JPEG Data streams. |
static JPEGEncodeParam |
getDefaultJPEGEncodeParam(BufferedImage bi)
This is a factory method for creating JPEGEncodeParam objects. |
static JPEGEncodeParam |
getDefaultJPEGEncodeParam(int numBands,
int colorID)
This is a factory method for creating JPEGEncodeParam objects. |
static JPEGEncodeParam |
getDefaultJPEGEncodeParam(JPEGDecodeParam jdp)
This is a factory method for creating a JPEGEncodeParam from a JPEGDecodeParam. |
static JPEGEncodeParam |
getDefaultJPEGEncodeParam(Raster ras,
int colorID)
This is a factory method for creating JPEGEncodeParam objects. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
public static JPEGImageDecoder createJPEGDecoder(InputStream src)
public static JPEGImageDecoder createJPEGDecoder(InputStream src, JPEGDecodeParam jdp)
public static JPEGImageEncoder createJPEGEncoder(OutputStream dest)
public static JPEGImageEncoder createJPEGEncoder(OutputStream dest, JPEGEncodeParam jep)
public static JPEGEncodeParam getDefaultJPEGEncodeParam(BufferedImage bi)
bi
- A BufferedImage that is similar to the BufferedImage(s)
that will encoded using the returned JPEGEncodeParam object.public static JPEGEncodeParam getDefaultJPEGEncodeParam(Raster ras, int colorID)
ras
- Raster that is similar to those to be encoded later.colorID
- the COLOR_ID for the encoded data. This should
match the data in the raster.public static JPEGEncodeParam getDefaultJPEGEncodeParam(int numBands, int colorID) throws ImageFormatException
numBands
- the number of bands that will be encoded (max of four).colorID
- the COLOR_ID for the encoded data. This is used to
set reasonable defaults in the parameter object. This must match
the number of bands given.
ImageFormatException
public static JPEGEncodeParam getDefaultJPEGEncodeParam(JPEGDecodeParam jdp) throws ImageFormatException
jdp
- The JPEGDecodeParam object to copy.
ImageFormatException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |