Class RGB8RLEDecoder

java.lang.Object
com.twelvemonkeys.imageio.plugins.iff.RGB8RLEDecoder
All Implemented Interfaces:
Decoder

final class RGB8RLEDecoder extends Object implements Decoder
Decoder implementation for Impulse FORM RGB8 RLE compression (type 4).
Version:
$Id: RGB8RLEDecoder.java,v 1.0 28/01/2022 haraldk Exp$
See Also:
  • Constructor Details

    • RGB8RLEDecoder

      RGB8RLEDecoder()
  • Method Details

    • decode

      public int decode(InputStream stream, ByteBuffer buffer) throws IOException
      Description copied from interface: Decoder
      Decodes up to buffer.length bytes from the given input stream, into the given buffer.
      Specified by:
      decode in interface Decoder
      Parameters:
      stream - the input stream to decode data from
      buffer - buffer to store the read data
      Returns:
      the total number of bytes read into the buffer, or 0 if there is no more data because the end of the stream has been reached.
      Throws:
      IOException - if an I/O error occurs.