|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
ObjectIIOServiceProvider
ImageReaderWriterSpi
ImageReaderSpi
MosaicImageReader.Spi
public static class MosaicImageReader.Spi
Service provider for MosaicImageReader. This service provider is not strictly
compliant with the Image I/O specification since it cant not work with
ImageInputStream.
| coverage/geotk-coverageio (download) | View source code for this class |
| Field Summary | |
|---|---|
static MosaicImageReader.Spi |
DEFAULT
The default instance. |
| Fields inherited from class ImageReaderSpi |
|---|
inputTypes, STANDARD_INPUT_TYPE, writerSpiNames |
| Fields inherited from class IIOServiceProvider |
|---|
vendorName, version |
| Constructor Summary | |
|---|---|
MosaicImageReader.Spi()
Creates a default provider. |
|
| Method Summary | |
|---|---|
boolean |
canDecodeInput(Object source)
Returns true if the image reader can decode the given input. |
ImageReader |
createReaderInstance(Object extension)
Returns a new MosaicImageReader. |
String |
getDescription(Locale locale)
Returns a brief, human-readable description of this service provider. |
Class<?>[] |
getInputTypes()
Returns the types of objects that may be used as arguments to the ImageReader.setInput(Object) method. |
| Methods inherited from class ImageReaderSpi |
|---|
createReaderInstance, getImageWriterSpiNames, isOwnReader |
| 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 MosaicImageReader.Spi DEFAULT
IIORegistry, because this provider is not
strictly compliant with the Image I/O requirement (in particular, the Mosaic
Image Reader does not accept ImageInputStream).
This constant can be used as a replacement.
| Constructor Detail |
|---|
public MosaicImageReader.Spi()
ImageReaderSpi.inputTypes
field in order to delay loading of Tile and TileManager classes
as much as possible.
| Method Detail |
|---|
public Class<?>[] getInputTypes()
ImageReader.setInput(Object) method. This method
initializes the ImageReaderSpi.inputTypes field when first needed.
The types that MosaicImageReader can accept are the types that
TileManagerFactory.createFromObject(Object) can process.
getInputTypes in class ImageReaderSpi
public boolean canDecodeInput(Object source)
throws IOException
true if the image reader can decode the given input. The default
implementation returns true if the given object is an instance assignable
to one of the types returned by the getInputTypes() implementation
of this Spi class, and other type-specific restrictions are meet (e.g.
Collection contains only instances of Tile, etc.).
canDecodeInput in class ImageReaderSpiIOException - If an I/O operation was required and failed.
public ImageReader createReaderInstance(Object extension)
throws IOException
MosaicImageReader.
createReaderInstance in class ImageReaderSpiIOException - 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 | |||||||||