Package org.geotools.coverage.grid.io
Class AbstractGridCoverageWriter
Object
AbstractGridCoverageWriter
- All Implemented Interfaces:
 GridCoverageWriter
- Direct Known Subclasses:
 ArcGridWriter,GeoTiffWriter,GrassCoverageWriter,WorldImageWriter
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
FieldsModifier and TypeFieldDescriptionprotected Objectthe destination object where we will do the writingprotected HintsHints to be used for the writing process.protected ImageOutputStreamThe destinationImageOutputStream. - 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionvoiddispose()Releases resources held by thisAbstractGridCoverageWriter.protected voidfinalize()Forcing the disposal of thisAbstractGridCoverageWriterwhich may keep a reference to an openImageOutputStream(non-Javadoc)String[]Implementation of getMetadataNames.voidsetCurrentSubname(String name) Set the name for the next grid coverage to write within the output destination.voidsetMetadataValue(String name, String value) Sets the metadata value for a given metadata name.Methods inherited from class Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface GridCoverageWriter
getFormat, write 
- 
Field Details
- 
destination
the destination object where we will do the writing - 
hints
Hints to be used for the writing process. - 
outStream
The destinationImageOutputStream. 
 - 
 - 
Constructor Details
- 
AbstractGridCoverageWriter
public AbstractGridCoverageWriter()Default constructor for anAbstractGridCoverageWriter. 
 - 
 - 
Method Details
- 
dispose
public void dispose()Releases resources held by thisAbstractGridCoverageWriter.- Specified by:
 disposein interfaceGridCoverageWriter
 - 
getDestination
(non-Javadoc)- Specified by:
 getDestinationin interfaceGridCoverageWriter- See Also:
 
 - 
getMetadataNames
Implementation of getMetadataNames. Currently unimplemented because it has not been specified where to retrieve the metadata- Specified by:
 getMetadataNamesin interfaceGridCoverageWriter- Returns:
 - null
 - See Also:
 
 - 
setCurrentSubname
Description copied from interface:GridCoverageWriterSet the name for the next grid coverage to write within the output destination. The subname can been fetch later at reading time.- Specified by:
 setCurrentSubnamein interfaceGridCoverageWriter- Throws:
 IOException- if an error occurs during writing.- See Also:
 
 - 
setMetadataValue
Description copied from interface:GridCoverageWriterSets the metadata value for a given metadata name.- Specified by:
 setMetadataValuein interfaceGridCoverageWriter- Parameters:
 name- Metadata keyword for which to set the metadata.value- The metadata value for the given metadata name.- Throws:
 IOException- if an error occurs during writing.- See Also:
 
 - 
finalize
Forcing the disposal of thisAbstractGridCoverageWriterwhich may keep a reference to an openImageOutputStream 
 -