|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
ObjectIIOServiceProvider
ImageReaderWriterSpi
ImageWriterSpi
MosaicImageWriter.Spi
public static class MosaicImageWriter.Spi
Service provider for MosaicImageWriter. This service provider is not strictly
compliant with the Image I/O specification since it cant not work with
ImageOutputStream.
| coverage/geotk-coverageio (download) | View source code for this class |
| Field Summary | |
|---|---|
static MosaicImageWriter.Spi |
DEFAULT
The default instance. |
| Fields inherited from class ImageWriterSpi |
|---|
outputTypes, readerSpiNames, STANDARD_OUTPUT_TYPE |
| Fields inherited from class IIOServiceProvider |
|---|
vendorName, version |
| Constructor Summary | |
|---|---|
MosaicImageWriter.Spi()
Creates a default provider. |
|
| Method Summary | |
|---|---|
boolean |
canEncodeImage(ImageTypeSpecifier type)
Returns true if this writer is likely to be able to encode images with the given
layout. |
boolean |
canEncodeOutput(Object destination)
Returns true if the image writer can encode the given output. |
ImageWriter |
createWriterInstance(Object extension)
Returns a new MosaicImageWriter. |
String |
getDescription(Locale locale)
Returns a brief, human-readable description of this service provider. |
Class<?>[] |
getOutputTypes()
Returns the types of objects that may be used as arguments to the MosaicImageWriter.setOutput(Object) method. |
| Methods inherited from class ImageWriterSpi |
|---|
canEncodeImage, createWriterInstance, getImageReaderSpiNames, isFormatLossless, isOwnWriter |
| Methods inherited from class IIOServiceProvider |
|---|
getVendorName, getVersion, onDeregistration, onRegistration |
| Methods inherited from class Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final MosaicImageWriter.Spi DEFAULT
IIORegistry, because this provider is not
strictly compliant with the Image I/O requirement (in particular, the Mosaic
Image Writer does not accept ImageOutputStream).
This constant can be used as a replacement.
| Constructor Detail |
|---|
public MosaicImageWriter.Spi()
ImageWriterSpi.outputTypes
field in order to delay loading of Tile and TileManager classes
as much as possible.
| Method Detail |
|---|
public Class<?>[] getOutputTypes()
MosaicImageWriter.setOutput(Object) method. This method
initializes the ImageWriterSpi.outputTypes field when first needed.
getOutputTypes in class ImageWriterSpi
public boolean canEncodeOutput(Object destination)
throws IOException
true if the image writer can encode the given output. The default
implementation returns true if the given object is an instance assignable
to one of the types returned by the getOutputTypes() implementation
of this Spi class, and other type-specific restrictions are meet (e.g.
Collection contains only instances of Tile, etc.).
destination - The output to be encoded.
true If the image writer can encode the given output.
IOException - If an I/O operation was required and failed.public boolean canEncodeImage(ImageTypeSpecifier type)
true if this writer is likely to be able to encode images with the given
layout. The default implementation returns true in all cases. The capability to
encode images depends on the tile format specified in Tile objects, which are
not known to this provider.
canEncodeImage in class ImageWriterSpi
public ImageWriter createWriterInstance(Object extension)
throws IOException
MosaicImageWriter.
createWriterInstance in class ImageWriterSpiIOException - If an I/O operation was required and failed.public String getDescription(Locale locale)
getDescription in class IIOServiceProvider
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||