org.geotoolkit.image.io
Class StreamImageWriter.Spi
Object
IIOServiceProvider
ImageReaderWriterSpi
ImageWriterSpi
SpatialImageWriter.Spi
StreamImageWriter.Spi
- All Implemented Interfaces:
- RegisterableService
- Direct Known Subclasses:
- TextImageWriter.Spi
- Enclosing class:
- StreamImageWriter
protected abstract static class StreamImageWriter.Spi
- extends SpatialImageWriter.Spi
Service provider interface (SPI) for StreamImageWriters. The constructor of
this class initializes the ImageWriterSpi.outputTypes field to the value documented in the
StreamImageWriter javadoc, which are:
It is up to subclass constructors to initialize all other instance variables
in order to provide working versions of every methods.
- Since:
- 2.4
- Version:
- 3.20
- Author:
- Martin Desruisseaux (IRD)
- See Also:
StreamImageReader.Spi
- Module:
| Fields inherited from class ImageReaderWriterSpi |
extraImageMetadataFormatClassNames, extraImageMetadataFormatNames, extraStreamMetadataFormatClassNames, extraStreamMetadataFormatNames, MIMETypes, names, nativeImageMetadataFormatClassName, nativeImageMetadataFormatName, nativeStreamMetadataFormatClassName, nativeStreamMetadataFormatName, pluginClassName, suffixes, supportsStandardImageMetadataFormat, supportsStandardStreamMetadataFormat |
|
Method Summary |
boolean |
canEncodeImage(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 Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
StreamImageWriter.Spi
protected StreamImageWriter.Spi()
- Constructs a quasi-blank
StreamImageWriter.Spi. The ImageWriterSpi.outputTypes field
is initialized as documented in the class javadoc. It is
up to the subclass to initialize all other instance variables in order to provide working
versions of all methods.
For efficiency reasons, the above fields are initialized to shared arrays. Subclasses
can assign new arrays, but should not modify the default array content.
canEncodeImage
public boolean canEncodeImage(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 ImageWriterSpi
Copyright © 2009-2012 Geotoolkit.org. All Rights Reserved.