| java.lang.Object javax.imageio.ImageWriter org.geotools.image.io.GeographicImageWriter org.geotools.image.io.StreamImageWriter
All known Subclasses: org.geotools.image.io.text.TextImageWriter,
StreamImageWriter | abstract public class StreamImageWriter extends GeographicImageWriter (Code) | | Base class for simple image encoders. This class provides a
StreamImageWriter.getOutputStream method,
which returns the
as an
OutputStream for convenience.
Different kinds of output like
or
are automatically
handled.
since: 2.4 version: $Id: StreamImageWriter.java 27848 2007-11-12 13:10:32Z desruisseaux $ author: Martin Desruisseaux |
StreamImageWriter | protected StreamImageWriter(ImageWriterSpi provider)(Code) | | Constructs a new image writer.
Parameters: provider - The ImageWriterSpi that is invoking this constructor,or null if none. |
dispose | public void dispose()(Code) | | Allows any resources held by this writer to be released. If an output stream were created
by a previous call to
StreamImageWriter.getOutputStream , it will be
before to dispose this writer.
|
finalize | protected void finalize() throws Throwable(Code) | | Closes the streams. This method is automatically invoked by the garbage collector.
|
reset | public void reset()(Code) | | Restores the
StreamImageWriter to its initial state. If an output stream were
created by a previous call to
StreamImageWriter.getOutputStream , it will be
before to reset this writer.
|
Methods inherited from javax.imageio.ImageWriter | public synchronized void abort()(Code)(Java Doc) protected synchronized boolean abortRequested()(Code)(Java Doc) public void addIIOWriteProgressListener(IIOWriteProgressListener listener)(Code)(Java Doc) public void addIIOWriteWarningListener(IIOWriteWarningListener listener)(Code)(Java Doc) public boolean canInsertEmpty(int imageIndex) throws IOException(Code)(Java Doc) public boolean canInsertImage(int imageIndex) throws IOException(Code)(Java Doc) public boolean canRemoveImage(int imageIndex) throws IOException(Code)(Java Doc) public boolean canReplaceImageMetadata(int imageIndex) throws IOException(Code)(Java Doc) public boolean canReplacePixels(int imageIndex) throws IOException(Code)(Java Doc) public boolean canReplaceStreamMetadata() throws IOException(Code)(Java Doc) public boolean canWriteEmpty() throws IOException(Code)(Java Doc) public boolean canWriteRasters()(Code)(Java Doc) public boolean canWriteSequence()(Code)(Java Doc) protected synchronized void clearAbortRequest()(Code)(Java Doc) abstract public IIOMetadata convertImageMetadata(IIOMetadata inData, ImageTypeSpecifier imageType, ImageWriteParam param)(Code)(Java Doc) abstract public IIOMetadata convertStreamMetadata(IIOMetadata inData, ImageWriteParam param)(Code)(Java Doc) public void dispose()(Code)(Java Doc) public void endInsertEmpty() throws IOException(Code)(Java Doc) public void endReplacePixels() throws IOException(Code)(Java Doc) public void endWriteEmpty() throws IOException(Code)(Java Doc) public void endWriteSequence() throws IOException(Code)(Java Doc) public Locale[] getAvailableLocales()(Code)(Java Doc) abstract public IIOMetadata getDefaultImageMetadata(ImageTypeSpecifier imageType, ImageWriteParam param)(Code)(Java Doc) abstract public IIOMetadata getDefaultStreamMetadata(ImageWriteParam param)(Code)(Java Doc) public ImageWriteParam getDefaultWriteParam()(Code)(Java Doc) public Locale getLocale()(Code)(Java Doc) public int getNumThumbnailsSupported(ImageTypeSpecifier imageType, ImageWriteParam param, IIOMetadata streamMetadata, IIOMetadata imageMetadata)(Code)(Java Doc) public ImageWriterSpi getOriginatingProvider()(Code)(Java Doc) public Object getOutput()(Code)(Java Doc) public Dimension[] getPreferredThumbnailSizes(ImageTypeSpecifier imageType, ImageWriteParam param, IIOMetadata streamMetadata, IIOMetadata imageMetadata)(Code)(Java Doc) public void prepareInsertEmpty(int imageIndex, ImageTypeSpecifier imageType, int width, int height, IIOMetadata imageMetadata, List<? extends BufferedImage> thumbnails, ImageWriteParam param) throws IOException(Code)(Java Doc) public void prepareReplacePixels(int imageIndex, Rectangle region) throws IOException(Code)(Java Doc) public void prepareWriteEmpty(IIOMetadata streamMetadata, ImageTypeSpecifier imageType, int width, int height, IIOMetadata imageMetadata, List<? extends BufferedImage> thumbnails, ImageWriteParam param) throws IOException(Code)(Java Doc) public void prepareWriteSequence(IIOMetadata streamMetadata) throws IOException(Code)(Java Doc) protected void processImageComplete()(Code)(Java Doc) protected void processImageProgress(float percentageDone)(Code)(Java Doc) protected void processImageStarted(int imageIndex)(Code)(Java Doc) protected void processThumbnailComplete()(Code)(Java Doc) protected void processThumbnailProgress(float percentageDone)(Code)(Java Doc) protected void processThumbnailStarted(int imageIndex, int thumbnailIndex)(Code)(Java Doc) protected void processWarningOccurred(int imageIndex, String warning)(Code)(Java Doc) protected void processWarningOccurred(int imageIndex, String baseName, String keyword)(Code)(Java Doc) protected void processWriteAborted()(Code)(Java Doc) public void removeAllIIOWriteProgressListeners()(Code)(Java Doc) public void removeAllIIOWriteWarningListeners()(Code)(Java Doc) public void removeIIOWriteProgressListener(IIOWriteProgressListener listener)(Code)(Java Doc) public void removeIIOWriteWarningListener(IIOWriteWarningListener listener)(Code)(Java Doc) public void removeImage(int imageIndex) throws IOException(Code)(Java Doc) public void replaceImageMetadata(int imageIndex, IIOMetadata imageMetadata) throws IOException(Code)(Java Doc) public void replacePixels(RenderedImage image, ImageWriteParam param) throws IOException(Code)(Java Doc) public void replacePixels(Raster raster, ImageWriteParam param) throws IOException(Code)(Java Doc) public void replaceStreamMetadata(IIOMetadata streamMetadata) throws IOException(Code)(Java Doc) public void reset()(Code)(Java Doc) public void setLocale(Locale locale)(Code)(Java Doc) public void setOutput(Object output)(Code)(Java Doc) abstract public void write(IIOMetadata streamMetadata, IIOImage image, ImageWriteParam param) throws IOException(Code)(Java Doc) public void write(IIOImage image) throws IOException(Code)(Java Doc) public void write(RenderedImage image) throws IOException(Code)(Java Doc) public void writeInsert(int imageIndex, IIOImage image, ImageWriteParam param) throws IOException(Code)(Java Doc) public void writeToSequence(IIOImage image, ImageWriteParam param) throws IOException(Code)(Java Doc)
|
|
|