Class PixelChannel
java.lang.Object
org.apache.sis.internal.storage.inflater.PixelChannel
- All Implemented Interfaces:
Closeable
,AutoCloseable
,Channel
,ReadableByteChannel
- Direct Known Subclasses:
CompressionChannel
,PredictorChannel
A channel of pixel values after all steps have been completed.
The steps may be:
- Decompression alone, in which case this class is a subtype of
CompressionChannel
. - Decompression followed by some mathematical operation applied on the data after decompression.
In that case this class is a subtype of
PredictorChannel
.
Channel.close()
method shall be invoked when this channel is no longer used.- Since:
- 1.1
- Version:
- 1.2
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract void
setInputRegion
(long start, long byteCount) Prepares this channel for reading a new tile or a new band of a planar image.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.nio.channels.ReadableByteChannel
read
-
Constructor Details
-
PixelChannel
protected PixelChannel()Creates a new channel.
-
-
Method Details
-
setInputRegion
Prepares this channel for reading a new tile or a new band of a planar image.- Parameters:
start
- stream position where to start reading.byteCount
- number of bytes to read from the input.- Throws:
IOException
- if the stream cannot be seek to the given start position.
-