Package com.webcodepro.shrinkit.io
Class RleInputStream
java.lang.Object
java.io.InputStream
com.webcodepro.shrinkit.io.RleInputStream
- All Implemented Interfaces:
Closeable
,AutoCloseable
The RleInputStream handles the NuFX RLE data stream.
This data stream is byte oriented. If a repeat occurs,
the data stream will contain the marker byte, byte to
repeat, and the number of repeats (zero based; ie, $00=1,
$01=2, ... $ff=256). The default marker is $DB.
-
Constructor Summary
ConstructorsConstructorDescriptionCreate an RLE input stream with the default marker byte.RleInputStream
(InputStream bs, int escapeChar) Create an RLE input stream with the specified marker byte. -
Method Summary
Methods inherited from class java.io.InputStream
available, close, mark, markSupported, nullInputStream, read, read, readAllBytes, readNBytes, readNBytes, reset, skip, skipNBytes, transferTo
-
Constructor Details
-
RleInputStream
Create an RLE input stream with the default marker byte. -
RleInputStream
Create an RLE input stream with the specified marker byte.
-
-
Method Details
-
read
Read the next byte from the input stream.- Specified by:
read
in classInputStream
- Throws:
IOException
-