it.geosolutions.imageio.plugins.swan
Class SwanImageReaderSpi

Object
  extended by IIOServiceProvider
      extended by ImageReaderWriterSpi
          extended by ImageReaderSpi
              extended by 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.

Field Summary
 
Fields inherited from class ImageReaderSpi
inputTypes, STANDARD_INPUT_TYPE, writerSpiNames
 
Fields inherited from class ImageReaderWriterSpi
names, pluginClassName
 
Constructor Summary
SwanImageReaderSpi()
           
 
Method Summary
 boolean canDecodeInput(Object input)
          This method check if the input source can be decoded by the reader provided by this specific subclass of ImageReaderSpi.
 ImageReader createReaderInstance(Object source)
          Returns an instance of the SwanImageReader
 void dispose()
           
 void FileCoherencyCheck(ImageInputStream input)
           
 String getDescription(Locale locale)
           
 
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
 

Constructor Detail

SwanImageReaderSpi

public SwanImageReaderSpi()
Method Detail

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.