Package org.geotools.gce.grassraster
Class GrassBinaryImageWriter
- Object
-
- ImageWriter
-
- GrassBinaryImageWriter
-
- All Implemented Interfaces:
ImageTranscoder
public class GrassBinaryImageWriter extends ImageWriter
- Author:
- Andrea Antonello - www.hydrologis.com
-
-
Field Summary
-
Fields inherited from class ImageWriter
availableLocales, locale, originatingProvider, output, progressListeners, warningListeners, warningLocales
-
-
Constructor Summary
Constructors Constructor Description GrassBinaryImageWriter(GrassBinaryImageWriterSpi originatingProvider, ProgressListener monitor)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
abort()
boolean
abortRequested()
IIOMetadata
convertImageMetadata(IIOMetadata md, ImageTypeSpecifier its, ImageWriteParam param)
IIOMetadata
convertStreamMetadata(IIOMetadata md, ImageWriteParam param)
void
dispose()
Cleans thisGrassBinaryImageWriter
.IIOMetadata
getDefaultImageMetadata(ImageTypeSpecifier its, ImageWriteParam param)
IIOMetadata
getDefaultStreamMetadata(ImageWriteParam param)
void
reset()
void
setOutput(Object output)
Sets the output for thisGrassBinaryImageWriter
.void
setOutput(Object output, JGrassRegion writeRegion)
void
write(IIOMetadata streamMetadata, IIOImage image, ImageWriteParam param)
-
Methods inherited from class ImageWriter
addIIOWriteProgressListener, addIIOWriteWarningListener, canInsertEmpty, canInsertImage, canRemoveImage, canReplaceImageMetadata, canReplacePixels, canReplaceStreamMetadata, canWriteEmpty, canWriteRasters, canWriteSequence, clearAbortRequest, endInsertEmpty, endReplacePixels, endWriteEmpty, endWriteSequence, getAvailableLocales, getDefaultWriteParam, getLocale, getNumThumbnailsSupported, getOriginatingProvider, getOutput, getPreferredThumbnailSizes, prepareInsertEmpty, prepareReplacePixels, prepareWriteEmpty, prepareWriteSequence, processImageComplete, processImageProgress, processImageStarted, processThumbnailComplete, processThumbnailProgress, processThumbnailStarted, processWarningOccurred, processWarningOccurred, processWriteAborted, removeAllIIOWriteProgressListeners, removeAllIIOWriteWarningListeners, removeIIOWriteProgressListener, removeIIOWriteWarningListener, removeImage, replaceImageMetadata, replacePixels, replacePixels, replaceStreamMetadata, setLocale, write, write, writeInsert, writeToSequence
-
-
-
-
Constructor Detail
-
GrassBinaryImageWriter
public GrassBinaryImageWriter(GrassBinaryImageWriterSpi originatingProvider, ProgressListener monitor)
-
-
Method Detail
-
setOutput
public void setOutput(Object output, JGrassRegion writeRegion)
-
setOutput
public void setOutput(Object output)
Sets the output for thisGrassBinaryImageWriter
.- Overrides:
setOutput
in classImageWriter
-
write
public void write(IIOMetadata streamMetadata, IIOImage image, ImageWriteParam param) throws IOException
- Specified by:
write
in classImageWriter
- Throws:
IOException
-
getDefaultImageMetadata
public IIOMetadata getDefaultImageMetadata(ImageTypeSpecifier its, ImageWriteParam param)
- Specified by:
getDefaultImageMetadata
in classImageWriter
- See Also:
ImageWriter.getDefaultImageMetadata(javax.imageio.ImageTypeSpecifier, javax.imageio.ImageWriteParam)
-
getDefaultStreamMetadata
public IIOMetadata getDefaultStreamMetadata(ImageWriteParam param)
- Specified by:
getDefaultStreamMetadata
in classImageWriter
- See Also:
javax.imageio.ImageWriter#getDefaultIStreamMetadata(javax.imageio.ImageWriteParam)
-
convertStreamMetadata
public IIOMetadata convertStreamMetadata(IIOMetadata md, ImageWriteParam param)
- Specified by:
convertStreamMetadata
in interfaceImageTranscoder
- Specified by:
convertStreamMetadata
in classImageWriter
- See Also:
ImageWriter.convertStreamMetadata(javax.imageio.metadata.IIOMetadata, javax.imageio.ImageWriteParam)
-
convertImageMetadata
public IIOMetadata convertImageMetadata(IIOMetadata md, ImageTypeSpecifier its, ImageWriteParam param)
- Specified by:
convertImageMetadata
in interfaceImageTranscoder
- Specified by:
convertImageMetadata
in classImageWriter
- See Also:
ImageWriter.convertImageMetadata(javax.imageio.metadata.IIOMetadata, javax.imageio.ImageTypeSpecifier, javax.imageio.ImageWriteParam)
-
dispose
public void dispose()
Cleans thisGrassBinaryImageWriter
.- Overrides:
dispose
in classImageWriter
-
abort
public void abort()
- Overrides:
abort
in classImageWriter
-
abortRequested
public boolean abortRequested()
- Overrides:
abortRequested
in classImageWriter
-
reset
public void reset()
- Overrides:
reset
in classImageWriter
-
-