|
http://www.eteks.com | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.eteks.awt.image.GIFDecoder
An ImageProducer implementation that builds an image from a GIF
input stream.
Image data is sent to consumers only when image build is complete.
This class can be used without any link to java.awt package and an AWT toolkit.
The color model for this image is either an instance of java.awt.image.IndexColorModel
or the default ARGB model. Default RGB model is used if java.awt.image.ColorModel
class can't be instantiated for security or other reason (java.awt.image.ColorModel
requires AWT library to be loaded). In that case, the method setPixels ()
of the interface java.awt.image.ImageConsumer will be called with the color model parameter
set to null.
No support for animated GIFs.
| Constructor Summary | |
GIFDecoder(java.io.InputStream input)
Creates an instance of a GIF decoder for further reading from input.
|
|
GIFDecoder(java.io.InputStream input,
boolean closeWhenFinished)
Creates an instance of a GIF decoder for further reading from input.
|
|
| Method Summary | |
void |
addConsumer(java.awt.image.ImageConsumer ic)
ImageProducer implementation. |
boolean |
isConsumer(java.awt.image.ImageConsumer ic)
ImageProducer implementation. |
void |
removeConsumer(java.awt.image.ImageConsumer ic)
ImageProducer implementation. |
void |
requestTopDownLeftRightResend(java.awt.image.ImageConsumer ic)
ImageProducer implementation. |
void |
startProduction(java.awt.image.ImageConsumer ic)
ImageProducer implementation. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public GIFDecoder(java.io.InputStream input)
input.
Image reading from the stream starts only at startProduction () or
addConsumer () call. By default, input isn't closed
once image reading is done.
public GIFDecoder(java.io.InputStream input,
boolean closeWhenFinished)
input.
Image reading from the stream starts only at startProduction () or
addConsumer () call.
input - an input streamcloseWhenFinished - if true then input will be closed
once image reading will be done.| Method Detail |
public void startProduction(java.awt.image.ImageConsumer ic)
ImageProducer implementation.
startProduction in interface java.awt.image.ImageProducerpublic void addConsumer(java.awt.image.ImageConsumer ic)
ImageProducer implementation.
addConsumer in interface java.awt.image.ImageProducerpublic boolean isConsumer(java.awt.image.ImageConsumer ic)
ImageProducer implementation.
isConsumer in interface java.awt.image.ImageProducerpublic void removeConsumer(java.awt.image.ImageConsumer ic)
ImageProducer implementation.
removeConsumer in interface java.awt.image.ImageProducerpublic void requestTopDownLeftRightResend(java.awt.image.ImageConsumer ic)
ImageProducer implementation.
requestTopDownLeftRightResend in interface java.awt.image.ImageProducer
|
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||