|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
ObjectIIOServiceProvider
ImageReaderWriterSpi
ImageReaderSpi
SpatialImageReader.Spi
RawImageReader.Spi
public static class RawImageReader.Spi
Service provider interface (SPI) for RawImageReaders. This SPI provides
necessary implementation for creating default RawImageReader instances.
The default constructor initializes the fields to the values listed below.
Users wanting different values should create a subclass of Spi and
set the desired values in their constructor.
| Field | Value |
|---|---|
ImageReaderWriterSpi.names | "raw" |
ImageReaderWriterSpi.MIMETypes | "image/x-raw" |
ImageReaderWriterSpi.pluginClassName | "org.geotoolkit.image.io.plugin.RawImageReader" |
IIOServiceProvider.vendorName | "Geotoolkit.org" |
IIOServiceProvider.version | Version.GEOTOOLKIT |
By default, this provider register itself after the provider supplied by the
Image I/O extension for JAI, because the later supports a wider range of
sample models. See onRegistration for more information.
| coverage/geotk-coverageio (download) | View source code for this class |
| Field Summary |
|---|
| Fields inherited from class ImageReaderSpi |
|---|
inputTypes, STANDARD_INPUT_TYPE, writerSpiNames |
| Fields inherited from class IIOServiceProvider |
|---|
vendorName, version |
| Fields inherited from interface SystemOverride |
|---|
KEY_ALLOW_OVERRIDE |
| Constructor Summary | |
|---|---|
RawImageReader.Spi()
Constructs a default RawImageReader.Spi. |
|
| Method Summary | |
|---|---|
boolean |
canDecodeInput(Object source)
Returns true if the given source is an instance of RawImageInputStream
and is compatible with the restriction documented in RawImageReader javadoc. |
ImageReader |
createReaderInstance(Object extension)
Returns an instance of the ImageReader implementation associated
with this service provider. |
String |
getDescription(Locale locale)
Returns a brief, human-readable description of this service provider and its associated implementation. |
void |
onRegistration(ServiceRegistry registry,
Class<?> category)
Invoked when this Service Provider is registered. |
| Methods inherited from class SpatialImageReader.Spi |
|---|
getImageMetadataFormat, getStreamMetadataFormat |
| Methods inherited from class ImageReaderSpi |
|---|
createReaderInstance, getImageWriterSpiNames, getInputTypes, isOwnReader |
| Methods inherited from class IIOServiceProvider |
|---|
getVendorName, getVersion, onDeregistration |
| Methods inherited from class Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public RawImageReader.Spi()
RawImageReader.Spi. The fields are initialized as
documented in the class javadoc. Subclasses can
modify those values if desired.
For efficiency reasons, the fields are initialized to shared arrays. Subclasses can assign new arrays, but should not modify the default array content.
| Method Detail |
|---|
public String getDescription(Locale locale)
getDescription in class IIOServiceProviderlocale - A Locale for which the return value should be localized.
public boolean canDecodeInput(Object source)
throws IOException
true if the given source is an instance of RawImageInputStream
and is compatible with the restriction documented in RawImageReader javadoc.
canDecodeInput in class ImageReaderSpisource - The input source to be decoded.
true if the given source can be used by RawImageReader.
IOException - if an I/O error occurs while reading the stream.
public ImageReader createReaderInstance(Object extension)
throws IOException
ImageReader implementation associated
with this service provider.
createReaderInstance in class ImageReaderSpiextension - An optional extension object, which may be null.
IOException - if the attempt to instantiate the reader fails.
public void onRegistration(ServiceRegistry registry,
Class<?> category)
RawImageReader.Spi after the one provided in
Image I/O extension for JAI. This behavior can be changed by setting the
"geotk.system.override"
system property explicitly to true.
Note that the Geotk RAW image reader will be selected only if the source given to the
canDecodeInput(Object) method is compliant with the restrictions documented
in the javadoc, otherwise the standard RAW image reader will be selected instead.
onRegistration in interface RegisterableServiceonRegistration in class IIOServiceProviderregistry - The registry where is service is registered.category - The category for which this service is registered.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||