Package com.webcodepro.shrinkit.io
Class RleInputStream
- java.lang.Object
-
- java.io.InputStream
-
- com.webcodepro.shrinkit.io.RleInputStream
-
- All Implemented Interfaces:
java.io.Closeable
,java.lang.AutoCloseable
public class RleInputStream extends java.io.InputStream
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
Constructors Constructor Description RleInputStream(java.io.InputStream bs)
Create an RLE input stream with the default marker byte.RleInputStream(java.io.InputStream bs, int escapeChar)
Create an RLE input stream with the specified marker byte.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
read()
Read the next byte from the input stream.
-