Class RLEDecoder

java.lang.Object
com.twelvemonkeys.imageio.plugins.pcx.RLEDecoder
All Implemented Interfaces:
Decoder

final class RLEDecoder extends Object implements Decoder
  • Field Details

  • Constructor Details

    • RLEDecoder

      RLEDecoder()
  • 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.