Class CopyFromBytes.Floats
java.lang.Object
org.apache.sis.internal.storage.inflater.Inflater
org.apache.sis.internal.storage.inflater.CopyFromBytes
org.apache.sis.internal.storage.inflater.CopyFromBytes.Floats
- All Implemented Interfaces:
Closeable
,AutoCloseable
- Enclosing class:
CopyFromBytes
Inflater for sample values stored as single-precision floating point numbers.
This is a copy of
CopyFromBytes.Bytes
implementation with only the type changed.-
Field Summary
FieldsFields inherited from class org.apache.sis.internal.storage.inflater.Inflater
chunksPerRow, elementsPerChunk, input, skipAfterChunks
-
Constructor Summary
ConstructorsConstructorDescriptionFloats
(ChannelDataInput input, int count, int size, int[] skips, int divisor) Creates a new inflater which will write in the given buffer. -
Method Summary
Modifier and TypeMethodDescriptionvoid
setInputOutput
(long start, long byteCount, Buffer bank) Sets the destination bank.void
Reads a row of sample values.Methods inherited from class org.apache.sis.internal.storage.inflater.CopyFromBytes
create, skip, skipAfterChunk
-
Field Details
-
bank
Where to copy the values that we will read.
-
-
Constructor Details
-
Floats
Floats(ChannelDataInput input, int count, int size, int[] skips, int divisor) Creates a new inflater which will write in the given buffer.
-
-
Method Details
-
setInputOutput
Sets the destination bank.- Overrides:
setInputOutput
in classCopyFromBytes
- Parameters:
start
- input stream position where to start reading.byteCount
- number of bytes to read before decompression.bank
- where to store sample values.- Throws:
IOException
- if an I/O operation was required and failed.
-
uncompressRow
Reads a row of sample values.- Overrides:
uncompressRow
in classCopyFromBytes
- Throws:
IOException
- if an error occurred while reading the input channel.
-