org.geotools.coverage.grid.io
Class AbstractGridCoverageWriter

Object
  extended by AbstractGridCoverageWriter
All Implemented Interfaces:
GridCoverageWriter
Direct Known Subclasses:
ArcGridWriter, GeoTiffWriter, GTopo30Writer, WorldImageWriter

public abstract class AbstractGridCoverageWriter
extends Object
implements 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  Object destination
          the destination object where we will do the writing
protected  Hints hints
          Hints to be used for the writing process.
protected  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
 Object getDestination()
          (non-Javadoc)
 String[] getMetadataNames()
          Implementation of getMetadataNames.
 void setCurrentSubname(String name)
           
 void setMetadataValue(String name, String value)
           
 
Methods inherited from class Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface GridCoverageWriter
getFormat, write
 

Field Detail

destination

protected 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 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 GridCoverageWriter

getDestination

public Object getDestination()
(non-Javadoc)

Specified by:
getDestination in interface GridCoverageWriter
See Also:
GridCoverageWriter.getDestination()

getMetadataNames

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

Specified by:
getMetadataNames in interface GridCoverageWriter
Returns:
null
See Also:
GridCoverageWriter.getMetadataNames()

setCurrentSubname

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

setMetadataValue

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

finalize

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

Overrides:
finalize in class Object
Throws:
Throwable


Copyright © 1996-2009 Geotools. All Rights Reserved.