org.geotools.image.io
Class StreamImageWriter.Spi

java.lang.Object
  extended by javax.imageio.spi.IIOServiceProvider
      extended by javax.imageio.spi.ImageReaderWriterSpi
          extended by javax.imageio.spi.ImageWriterSpi
              extended by org.geotools.image.io.StreamImageWriter.Spi
All Implemented Interfaces:
javax.imageio.spi.RegisterableService
Direct Known Subclasses:
TextImageWriter.Spi
Enclosing class:
StreamImageWriter

public abstract static class StreamImageWriter.Spi
extends javax.imageio.spi.ImageWriterSpi

Service provider interface (SPI) for StreamImageWriters.

Since:
2.4
Version:
$Id: StreamImageWriter.java 30679 2008-06-13 10:19:41Z acuster $
Author:
Martin Desruisseaux (IRD)

Field Summary
 
Fields inherited from class javax.imageio.spi.ImageWriterSpi
outputTypes, readerSpiNames, STANDARD_OUTPUT_TYPE
 
Fields inherited from class javax.imageio.spi.ImageReaderWriterSpi
extraImageMetadataFormatClassNames, extraImageMetadataFormatNames, extraStreamMetadataFormatClassNames, extraStreamMetadataFormatNames, MIMETypes, names, nativeImageMetadataFormatClassName, nativeImageMetadataFormatName, nativeStreamMetadataFormatClassName, nativeStreamMetadataFormatName, pluginClassName, suffixes, supportsStandardImageMetadataFormat, supportsStandardStreamMetadataFormat
 
Fields inherited from class javax.imageio.spi.IIOServiceProvider
vendorName, version
 
Constructor Summary
StreamImageWriter.Spi()
          Constructs a quasi-blank StreamImageWriter.Spi.
 
Method Summary
 boolean canEncodeImage(javax.imageio.ImageTypeSpecifier type)
          Returns true if the image writer implementation associated with this service provider is able to encode an image with the given layout.
 
Methods inherited from class javax.imageio.spi.ImageWriterSpi
canEncodeImage, createWriterInstance, createWriterInstance, getImageReaderSpiNames, getOutputTypes, isFormatLossless, isOwnWriter
 
Methods inherited from class javax.imageio.spi.ImageReaderWriterSpi
getExtraImageMetadataFormatNames, getExtraStreamMetadataFormatNames, getFileSuffixes, getFormatNames, getImageMetadataFormat, getMIMETypes, getNativeImageMetadataFormatName, getNativeStreamMetadataFormatName, getPluginClassName, getStreamMetadataFormat, isStandardImageMetadataFormatSupported, isStandardStreamMetadataFormatSupported
 
Methods inherited from class javax.imageio.spi.IIOServiceProvider
getDescription, getVendorName, getVersion, onDeregistration, onRegistration
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StreamImageWriter.Spi

public StreamImageWriter.Spi()
Constructs a quasi-blank StreamImageWriter.Spi. It is up to the subclass to initialize instance variables in order to provide working versions of all methods. This constructor provides the following defaults: For efficienty reasons, the above fields are initialized to shared arrays. Subclasses can assign new arrays, but should not modify the default array content.

Method Detail

canEncodeImage

public boolean canEncodeImage(javax.imageio.ImageTypeSpecifier type)
Returns true if the image writer implementation associated with this service provider is able to encode an image with the given layout. The default implementation returns always true, which is accurate if the writer will fetch pixel values with the help of an iterator.

Specified by:
canEncodeImage in class javax.imageio.spi.ImageWriterSpi


Copyright © 1996-2010 Geotools. All Rights Reserved.