Class RLEDecoder
java.lang.Object
com.twelvemonkeys.imageio.plugins.sgi.RLEDecoder
- All Implemented Interfaces:
Decoder
-
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
-
RLEDecoder
RLEDecoder()
-
-
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.
-