Class RGB8RLEDecoder
- java.lang.Object
-
- com.twelvemonkeys.imageio.plugins.iff.RGB8RLEDecoder
-
- All Implemented Interfaces:
Decoder
final class RGB8RLEDecoder extends java.lang.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:
- RGBN and RGB8 IFF Image Data
-
-
Constructor Summary
Constructors Constructor Description RGB8RLEDecoder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
decode(java.io.InputStream stream, java.nio.ByteBuffer buffer)
Decodes up tobuffer.length
bytes from the given input stream, into the given buffer.
-
-
-
Method Detail
-
decode
public int decode(java.io.InputStream stream, java.nio.ByteBuffer buffer) throws java.io.IOException
Description copied from interface:Decoder
Decodes up tobuffer.length
bytes from the given input stream, into the given buffer.- Specified by:
decode
in interfaceDecoder
- Parameters:
stream
- the input stream to decode data frombuffer
- 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:
DecodeException
- if encoded data is corrupt.java.io.IOException
- if an I/O error occurs.java.io.EOFException
- if a premature end-of-file is encountered.
-
-