it.geosolutions.imageio.plugins.swan
Class SwanImageReaderSpi
Object
IIOServiceProvider
ImageReaderWriterSpi
ImageReaderSpi
SwanImageReaderSpi
- All Implemented Interfaces:
- RegisterableService
public final class SwanImageReaderSpi
- extends ImageReaderSpi
Class which provides a specialized Service Provider Interface which
instantiates a SwanImageReader
if it is able to decode the input provided.
- Author:
- Daniele Romagnoli, GeoSolutions., Simone Giannecchini, GeoSolutions.
Fields inherited from class ImageReaderSpi |
inputTypes, STANDARD_INPUT_TYPE, writerSpiNames |
Fields inherited from class ImageReaderWriterSpi |
names, pluginClassName |
Methods inherited from class ImageReaderSpi |
createReaderInstance, getImageWriterSpiNames, getInputTypes, isOwnReader |
Methods inherited from class ImageReaderWriterSpi |
getExtraImageMetadataFormatNames, getExtraStreamMetadataFormatNames, getFileSuffixes, getFormatNames, getImageMetadataFormat, getMIMETypes, getNativeImageMetadataFormatName, getNativeStreamMetadataFormatName, getPluginClassName, getStreamMetadataFormat, isStandardImageMetadataFormatSupported, isStandardStreamMetadataFormatSupported |
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 |
SwanImageReaderSpi
public SwanImageReaderSpi()
canDecodeInput
public boolean canDecodeInput(Object input)
throws IOException
- This method check if the input source can be decoded by the reader
provided by this specific subclass of ImageReaderSpi. Return true if the
check was successfully passed. input source type accepted and handled are
String, File, Url, InputStream and ImageInputStream.
- Specified by:
canDecodeInput
in class ImageReaderSpi
- Throws:
IOException
- See Also:
ImageReaderSpi.canDecodeInput(java.lang.Object)
FileCoherencyCheck
public void FileCoherencyCheck(ImageInputStream input)
throws IOException,
XmlException
- Parameters:
swanFile
- the file containing data generated by SWAN
- Throws:
IOException
XmlException
createReaderInstance
public ImageReader createReaderInstance(Object source)
throws IOException
- Returns an instance of the SwanImageReader
- Specified by:
createReaderInstance
in class ImageReaderSpi
- Throws:
IOException
- See Also:
ImageReaderSpi.createReaderInstance(java.lang.Object)
getDescription
public String getDescription(Locale locale)
- Specified by:
getDescription
in class IIOServiceProvider
- See Also:
IIOServiceProvider.getDescription(java.util.Locale)
dispose
public void dispose()
Copyright © 2006-2010 GeoSolutions. All Rights Reserved.