Class CompressesRasterWriter
- java.lang.Object
-
- org.hortonmachine.gears.io.grasslegacy.io.CompressesRasterWriter
-
public class CompressesRasterWriter extends Object
Write compressed JGrass rasters to disk
- Since:
- 1.1.0
- Author:
- Andrea Antonello - www.hydrologis.com
-
-
Constructor Summary
Constructors Constructor Description CompressesRasterWriter(int _outputToDiskType, double[] _range, long _pointerInFilePosition, long[] _rowaddresses, Window _dataWindow)Preparing the environment for compressing and writing the map to disk
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancompressAndWriteObj(RandomAccessFile theCreatedFile, RandomAccessFile theCreatedNullFile, Object dataObject)Passing the object after defining the type of data that will be writtenWindowgetDataWindow()intgetOutputToDiskType()longgetPointerInFilePosition()double[]getRange()long[]getRowaddresses()
-
-
-
Constructor Detail
-
CompressesRasterWriter
public CompressesRasterWriter(int _outputToDiskType, double[] _range, long _pointerInFilePosition, long[] _rowaddresses, Window _dataWindow)Preparing the environment for compressing and writing the map to disk- Parameters:
_outputToDiskType-_novalue-_jump-_range-_pointerInFilePosition-_rowaddresses-_dataWindow-
-
-
Method Detail
-
compressAndWriteObj
public boolean compressAndWriteObj(RandomAccessFile theCreatedFile, RandomAccessFile theCreatedNullFile, Object dataObject) throws RasterWritingFailureException
Passing the object after defining the type of data that will be written- Parameters:
theCreatedFile-theCreatedNullFile-dataObject-- Returns:
- Throws:
RasterWritingFailureException
-
getDataWindow
public Window getDataWindow()
-
getOutputToDiskType
public int getOutputToDiskType()
-
getPointerInFilePosition
public long getPointerInFilePosition()
-
getRange
public double[] getRange()
-
getRowaddresses
public long[] getRowaddresses()
-
-