|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectsun.awt.image.ImageDecoderFactory
public class ImageDecoderFactory
ImageDecoderFactory allows the peer implementations to
provide alternative image decoder implementations that can be used
image decoding framework. There is always a default instance created
that uses the decoders that are part of the sun.awt.image
package.
sun.awt.image.InputStreamImageSource.getDecoder() method
gets the instance of ImageDecoderFactory using
ImageDecoderFactory.getInstance() and uses the factory to
create various decoders.
sun.awt.image.ImageDecoderFactory and provide
implementation for ImageDecoderFactory.newImageDecoder()sun.awt.image.ImageDecoderFactory.setFactory()
| Field Summary | |
|---|---|
static String |
IMG_FORMAT_GIF
GIF Image format |
static String |
IMG_FORMAT_JPG
JPEG Image format |
static String |
IMG_FORMAT_PNG
PNG Image format |
static String |
IMG_FORMAT_XBM
XBM Image format |
| Constructor Summary | |
|---|---|
ImageDecoderFactory()
|
|
| Method Summary | |
|---|---|
static ImageDecoderFactory |
getInstance()
Returns the ImageDecoderFactory instance. |
ImageDecoder |
newImageDecoder(InputStreamImageSource source,
InputStream input,
String imgFormat)
Creates an instance of a new ImageDecoder for the
image format specified. |
static void |
setFactory(ImageDecoderFactory factory)
Sets the ImageDecoderFactory instance. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String IMG_FORMAT_GIF
public static final String IMG_FORMAT_JPG
public static final String IMG_FORMAT_PNG
public static final String IMG_FORMAT_XBM
| Constructor Detail |
|---|
public ImageDecoderFactory()
| Method Detail |
|---|
public static ImageDecoderFactory getInstance()
ImageDecoderFactory instance.
public static void setFactory(ImageDecoderFactory factory)
ImageDecoderFactory instance. This can be
called by the peer implementation to change the decoder factory
public ImageDecoder newImageDecoder(InputStreamImageSource source,
InputStream input,
String imgFormat)
throws IOException
ImageDecoder for the
image format specified.
IOException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||