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 Object
the destination object where we will do the writingprotected Hints
Hints to be used for the writing process.protected ImageOutputStream
The destinationImageOutputStream
. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
dispose()
Releases resources held by thisAbstractGridCoverageWriter
.protected void
finalize()
Forcing the disposal of thisAbstractGridCoverageWriter
which may keep a reference to an openImageOutputStream
(non-Javadoc)String[]
Implementation of getMetadataNames.void
setCurrentSubname
(String name) Set the name for the next grid coverage to write within the output destination.void
setMetadataValue
(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, wait
Methods 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:
dispose
in interfaceGridCoverageWriter
-
getDestination
(non-Javadoc)- Specified by:
getDestination
in interfaceGridCoverageWriter
- See Also:
-
getMetadataNames
Implementation of getMetadataNames. Currently unimplemented because it has not been specified where to retrieve the metadata- Specified by:
getMetadataNames
in interfaceGridCoverageWriter
- Returns:
- null
- See Also:
-
setCurrentSubname
Description copied from interface:GridCoverageWriter
Set the name for the next grid coverage to write within the output destination. The subname can been fetch later at reading time.- Specified by:
setCurrentSubname
in interfaceGridCoverageWriter
- Throws:
IOException
- if an error occurs during writing.- See Also:
-
setMetadataValue
Description copied from interface:GridCoverageWriter
Sets the metadata value for a given metadata name.- Specified by:
setMetadataValue
in 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 thisAbstractGridCoverageWriter
which may keep a reference to an openImageOutputStream
-