public abstract class AbstractGridCoverageWriter extends Object implements GridCoverageWriter
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
.
Modifier and Type | Field and Description |
---|---|
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 and Description |
---|
AbstractGridCoverageWriter()
Default constructor for an
AbstractGridCoverageWriter . |
Modifier and Type | Method and Description |
---|---|
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)
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.
|
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getFormat, write
protected Object destination
protected Hints hints
protected ImageOutputStream outStream
ImageOutputStream
.public AbstractGridCoverageWriter()
AbstractGridCoverageWriter
.public void dispose()
AbstractGridCoverageWriter
.dispose
in interface GridCoverageWriter
public Object getDestination()
getDestination
in interface GridCoverageWriter
GridCoverageWriter.getDestination()
public String[] getMetadataNames()
getMetadataNames
in interface GridCoverageWriter
GridCoverageWriter.getMetadataNames()
public void setCurrentSubname(String name) throws IOException
GridCoverageWriter
setCurrentSubname
in interface GridCoverageWriter
IOException
- if an error occurs during writing.GridCoverageWriter.setCurrentSubname(java.lang.String)
public void setMetadataValue(String name, String value) throws IOException
GridCoverageWriter
setMetadataValue
in interface GridCoverageWriter
name
- Metadata keyword for which to set the metadata.value
- The metadata value for the given metadata name.IOException
- if an error occurs during writing.GridCoverageWriter.setMetadataValue(java.lang.String,
java.lang.String)
protected void finalize() throws Throwable
AbstractGridCoverageWriter
which may keep a reference to
an open ImageOutputStream
Copyright © 1996–2019 Geotools. All rights reserved.