Package com.bc.zarr.chunk
Class ChunkReaderWriter
- java.lang.Object
-
- com.bc.zarr.chunk.ChunkReaderWriter
-
- Direct Known Subclasses:
ChunkReaderWriterImpl_Byte,ChunkReaderWriterImpl_Double,ChunkReaderWriterImpl_Float,ChunkReaderWriterImpl_Integer,ChunkReaderWriterImpl_Long,ChunkReaderWriterImpl_Short
public abstract class ChunkReaderWriter extends Object
-
-
Field Summary
Fields Modifier and Type Field Description protected Compressorcompressorprotected Numberfillprotected ByteOrderorderprotected Storestore
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description static ChunkReaderWritercreate(Compressor compressor, DataType dataType, ByteOrder order, int[] chunkShape, Number fill, Store store)protected ucar.ma2.ArraycreateFilled(ucar.ma2.DataType dataType)protected intgetSize()abstract ucar.ma2.Arrayread(String path)abstract voidwrite(String path, ucar.ma2.Array array)
-
-
-
Field Detail
-
compressor
protected final Compressor compressor
-
fill
protected final Number fill
-
store
protected final Store store
-
order
protected final ByteOrder order
-
-
Method Detail
-
create
public static ChunkReaderWriter create(Compressor compressor, DataType dataType, ByteOrder order, int[] chunkShape, Number fill, Store store)
-
read
public abstract ucar.ma2.Array read(String path) throws IOException
- Throws:
IOException
-
write
public abstract void write(String path, ucar.ma2.Array array) throws IOException
- Throws:
IOException
-
createFilled
protected ucar.ma2.Array createFilled(ucar.ma2.DataType dataType)
-
getSize
protected int getSize()
-
-