org.geotools.image.io.netcdf
Class NetcdfImageReader.Spi

java.lang.Object
  extended by javax.imageio.spi.IIOServiceProvider
      extended by javax.imageio.spi.ImageReaderWriterSpi
          extended by javax.imageio.spi.ImageReaderSpi
              extended by org.geotools.image.io.StreamImageReader.Spi
                  extended by org.geotools.image.io.netcdf.NetcdfImageReader.Spi
All Implemented Interfaces:
javax.imageio.spi.RegisterableService
Enclosing class:
NetcdfImageReader

public static class NetcdfImageReader.Spi
extends StreamImageReader.Spi

The service provider for NetcdfImageReader.

Version:
$Id: NetcdfImageReader.java 31017 2008-07-15 13:56:22Z desruisseaux $
Author:
Antoine Hnawia, Martin Desruisseaux

Field Summary
 
Fields inherited from class javax.imageio.spi.ImageReaderSpi
inputTypes, STANDARD_INPUT_TYPE, writerSpiNames
 
Fields inherited from class javax.imageio.spi.ImageReaderWriterSpi
extraImageMetadataFormatClassNames, extraImageMetadataFormatNames, extraStreamMetadataFormatClassNames, extraStreamMetadataFormatNames, MIMETypes, names, nativeImageMetadataFormatClassName, nativeImageMetadataFormatName, nativeStreamMetadataFormatClassName, nativeStreamMetadataFormatName, pluginClassName, suffixes, supportsStandardImageMetadataFormat, supportsStandardStreamMetadataFormat
 
Fields inherited from class javax.imageio.spi.IIOServiceProvider
vendorName, version
 
Constructor Summary
NetcdfImageReader.Spi()
          Constructs a default NetcdfImageReader.Spi.
 
Method Summary
 boolean canDecodeInput(java.lang.Object source)
          Checks if the specified input seems to be a readeable NetCDF file.
 javax.imageio.ImageReader createReaderInstance(java.lang.Object extension)
          Constructs a NetCDF image reader.
 java.lang.String getDescription(java.util.Locale locale)
          Returns a description for this provider.
 
Methods inherited from class javax.imageio.spi.ImageReaderSpi
createReaderInstance, getImageWriterSpiNames, getInputTypes, isOwnReader
 
Methods inherited from class javax.imageio.spi.ImageReaderWriterSpi
getExtraImageMetadataFormatNames, getExtraStreamMetadataFormatNames, getFileSuffixes, getFormatNames, getImageMetadataFormat, getMIMETypes, getNativeImageMetadataFormatName, getNativeStreamMetadataFormatName, getPluginClassName, getStreamMetadataFormat, isStandardImageMetadataFormatSupported, isStandardStreamMetadataFormatSupported
 
Methods inherited from class javax.imageio.spi.IIOServiceProvider
getVendorName, getVersion, onDeregistration, onRegistration
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NetcdfImageReader.Spi

public NetcdfImageReader.Spi()
Constructs a default NetcdfImageReader.Spi. This constructor provides the following defaults in addition to the defaults defined in the super-class constructor: For efficienty reasons, the above fields are initialized to shared arrays. Subclasses can assign new arrays, but should not modify the default array content.

Method Detail

getDescription

public java.lang.String getDescription(java.util.Locale locale)
Returns a description for this provider.

Specified by:
getDescription in class javax.imageio.spi.IIOServiceProvider

canDecodeInput

public boolean canDecodeInput(java.lang.Object source)
                       throws java.io.IOException
Checks if the specified input seems to be a readeable NetCDF file. This method is only for indication purpose. Current implementation conservatively returns false.

Specified by:
canDecodeInput in class javax.imageio.spi.ImageReaderSpi
Throws:
java.io.IOException - If an error occured while reading the NetCDF file.

createReaderInstance

public javax.imageio.ImageReader createReaderInstance(java.lang.Object extension)
                                               throws java.io.IOException
Constructs a NetCDF image reader.

Specified by:
createReaderInstance in class javax.imageio.spi.ImageReaderSpi
Throws:
java.io.IOException - If an error occured while reading the NetCDF file.


Copyright © 1996-2010 Geotools. All Rights Reserved.