Class PixelChannel

java.lang.Object
org.apache.sis.internal.storage.inflater.PixelChannel
All Implemented Interfaces:
Closeable, AutoCloseable, Channel, ReadableByteChannel
Direct Known Subclasses:
CompressionChannel, PredictorChannel

abstract class PixelChannel extends Object implements ReadableByteChannel
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.
The Channel.close() method shall be invoked when this channel is no longer used.
Since:
1.1
Version:
1.2
  • Constructor Details

    • PixelChannel

      protected PixelChannel()
      Creates a new channel.
  • Method Details

    • setInputRegion

      public abstract void setInputRegion(long start, long byteCount) throws IOException
      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.