org.geotools.coverage.grid.io
Class AbstractGridCoverageWriter

java.lang.Object
  extended by org.geotools.coverage.grid.io.AbstractGridCoverageWriter
All Implemented Interfaces:
org.opengis.coverage.grid.GridCoverageWriter
Direct Known Subclasses:
ArcGridWriter, GeoTiffWriter, GTopo30Writer, WorldImageWriter

public abstract class AbstractGridCoverageWriter
extends java.lang.Object
implements org.opengis.coverage.grid.GridCoverageWriter

An AbstractGridCoverageWriter is the base class for all GridCoverageWriter implementations in GeoTools toolkit.

We expect it to become the place where to move functionalities common to all GridCoverageWriter.

Since:
2.3.x
Author:
Simone Giannecchini

Field Summary
protected  java.lang.Object destination
          the destination object where we will do the writing
protected  Hints hints
          Hints to be used for the writing process.
protected  javax.imageio.stream.ImageOutputStream outStream
          The destination ImageOutputStream.
 
Constructor Summary
AbstractGridCoverageWriter()
          Default constructor for an AbstractGridCoverageWriter.
 
Method Summary
 void dispose()
          Releases resources held by this AbstractGridCoverageWriter.
protected  void finalize()
          Forcing the disposal of this AbstractGridCoverageWriter which may keep a reference to an open ImageOutputStream
 java.lang.Object getDestination()
          (non-Javadoc)
 java.lang.String[] getMetadataNames()
          Implementation of getMetadataNames.
 void setCurrentSubname(java.lang.String name)
           
 void setMetadataValue(java.lang.String name, java.lang.String value)
           
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.opengis.coverage.grid.GridCoverageWriter
getFormat, write
 

Field Detail

destination

protected java.lang.Object destination
the destination object where we will do the writing


hints

protected Hints hints
Hints to be used for the writing process.


outStream

protected javax.imageio.stream.ImageOutputStream outStream
The destination ImageOutputStream.

Constructor Detail

AbstractGridCoverageWriter

public AbstractGridCoverageWriter()
Default constructor for an AbstractGridCoverageWriter.

Method Detail

dispose

public void dispose()
Releases resources held by this AbstractGridCoverageWriter.

Specified by:
dispose in interface org.opengis.coverage.grid.GridCoverageWriter

getDestination

public java.lang.Object getDestination()
(non-Javadoc)

Specified by:
getDestination in interface org.opengis.coverage.grid.GridCoverageWriter
See Also:
GridCoverageWriter.getDestination()

getMetadataNames

public java.lang.String[] getMetadataNames()
Implementation of getMetadataNames. Currently unimplemented because it has not been specified where to retrieve the metadata

Specified by:
getMetadataNames in interface org.opengis.coverage.grid.GridCoverageWriter
Returns:
null
See Also:
GridCoverageWriter.getMetadataNames()

setCurrentSubname

public void setCurrentSubname(java.lang.String name)
                       throws java.io.IOException
Specified by:
setCurrentSubname in interface org.opengis.coverage.grid.GridCoverageWriter
Throws:
java.io.IOException
See Also:
GridCoverageWriter.setCurrentSubname(java.lang.String)

setMetadataValue

public void setMetadataValue(java.lang.String name,
                             java.lang.String value)
                      throws java.io.IOException
Specified by:
setMetadataValue in interface org.opengis.coverage.grid.GridCoverageWriter
Throws:
java.io.IOException
See Also:
GridCoverageWriter.setMetadataValue(java.lang.String, java.lang.String)

finalize

protected void finalize()
                 throws java.lang.Throwable
Forcing the disposal of this AbstractGridCoverageWriter which may keep a reference to an open ImageOutputStream

Overrides:
finalize in class java.lang.Object
Throws:
java.lang.Throwable


Copyright © 1996-2010 Geotools. All Rights Reserved.