Class RGB8RLEDecoder
java.lang.Object
com.twelvemonkeys.imageio.plugins.iff.RGB8RLEDecoder
- All Implemented Interfaces:
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionint
decode
(InputStream stream, ByteBuffer buffer) Decodes up tobuffer.length
bytes from the given input stream, into the given buffer.
-
Constructor Details
-
RGB8RLEDecoder
RGB8RLEDecoder()
-
-
Method Details
-
decode
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:
IOException
- if an I/O error occurs.
-