| java.lang.Object org.apache.xmlgraphics.image.codec.util.ImageEncoderImpl
All known Subclasses: org.apache.xmlgraphics.image.codec.tiff.TIFFImageEncoder,
ImageEncoderImpl | abstract public class ImageEncoderImpl implements ImageEncoder(Code) | | A partial implementation of the ImageEncoder interface useful for
subclassing.
This class is not a committed part of the JAI API. It may
be removed or changed in future releases of JAI.
|
Method Summary | |
public void | encode(Raster ras, ColorModel cm) Encodes a Raster with a given ColorModel and writes the output
to the OutputStream associated with this ImageEncoder. | abstract public void | encode(RenderedImage im) Encodes a RenderedImage and writes the output to the
OutputStream associated with this ImageEncoder. | public OutputStream | getOutputStream() Returns the OutputStream associated with this ImageEncoder. | public ImageEncodeParam | getParam() Returns the current parameters as an instance of the
ImageEncodeParam interface. | public void | setParam(ImageEncodeParam param) Sets the current parameters to an instance of the
ImageEncodeParam interface. |
output | protected OutputStream output(Code) | | The OutputStream associcted with this ImageEncoder.
|
ImageEncoderImpl | public ImageEncoderImpl(OutputStream output, ImageEncodeParam param)(Code) | | Constructs an ImageEncoderImpl with a given OutputStream
and ImageEncoderParam instance.
|
encode | public void encode(Raster ras, ColorModel cm) throws IOException(Code) | | Encodes a Raster with a given ColorModel and writes the output
to the OutputStream associated with this ImageEncoder.
|
encode | abstract public void encode(RenderedImage im) throws IOException(Code) | | Encodes a RenderedImage and writes the output to the
OutputStream associated with this ImageEncoder.
|
getOutputStream | public OutputStream getOutputStream()(Code) | | Returns the OutputStream associated with this ImageEncoder.
|
getParam | public ImageEncodeParam getParam()(Code) | | Returns the current parameters as an instance of the
ImageEncodeParam interface. Concrete implementations of this
interface will return corresponding concrete implementations of
the ImageEncodeParam interface. For example, a JPEGImageEncoder
will return an instance of JPEGEncodeParam.
|
setParam | public void setParam(ImageEncodeParam param)(Code) | | Sets the current parameters to an instance of the
ImageEncodeParam interface. Concrete implementations
of ImageEncoder may throw a RuntimeException if the
params argument is not an instance of the appropriate
subclass or subinterface. For example, a JPEGImageEncoder
will expect param to be an instance of JPEGEncodeParam.
|
|
|