org.geotools.gce.geotiff
Class GeoTiffFormatFactorySpi

java.lang.Object
  extended byorg.geotools.gce.geotiff.GeoTiffFormatFactorySpi
All Implemented Interfaces:
Factory, GridFormatFactorySpi

public class GeoTiffFormatFactorySpi
extends java.lang.Object
implements GridFormatFactorySpi

The GeoTiffFormatFactorySpi should never be instantiated directly by user code. It is discovered by the GridFormatFinder for automatic discovery. Use the standard Geotools method of discovering a factory in order to create a format.

This format will only report itself to be "available" if the JAI and JAI ImageI/O libraries are available. Otherwise it will be unavailable. If a user attempts to create a new instance of the format when the required libraries are unavailable, an UnsupportedOperationException will be thrown.

Author:
Bryce Nordgren / USDA Forest Service

Constructor Summary
GeoTiffFormatFactorySpi()
          Creates a new instance of GeoTiffFormatFactorySpi
 
Method Summary
 org.opengis.coverage.grid.Format createFormat()
          Creates and returns a new instance of the GeoTiffFormat class if the required libraries are present.
 java.util.Map getImplementationHints()
          Returns the implementation hints.
 boolean isAvailable()
          Informs the caller whether the libraries required by the GeoTiff reader are installed or not.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GeoTiffFormatFactorySpi

public GeoTiffFormatFactorySpi()
Creates a new instance of GeoTiffFormatFactorySpi

Method Detail

createFormat

public org.opengis.coverage.grid.Format createFormat()
Creates and returns a new instance of the GeoTiffFormat class if the required libraries are present. If JAI and JAI Image I/O are not present, will throw an UnsupportedOperationException.

Specified by:
createFormat in interface GridFormatFactorySpi
Returns:
GeoTiffFormat object.
Throws:
java.lang.UnsupportedOperationException - if this format is unavailable.

isAvailable

public boolean isAvailable()
Informs the caller whether the libraries required by the GeoTiff reader are installed or not.

Specified by:
isAvailable in interface GridFormatFactorySpi
Returns:
availability of the GeoTiff format.

getImplementationHints

public java.util.Map getImplementationHints()
Returns the implementation hints. The default implementation returns en empty map.

Specified by:
getImplementationHints in interface Factory
Returns:
Empty Map.


Copyright © GeoTools. All Rights Reserved.