Class RleInputStream

java.lang.Object
java.io.InputStream
com.webcodepro.shrinkit.io.RleInputStream
All Implemented Interfaces:
Closeable, AutoCloseable

public class RleInputStream extends 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 Details

    • RleInputStream

      public RleInputStream(InputStream bs)
      Create an RLE input stream with the default marker byte.
    • RleInputStream

      public RleInputStream(InputStream bs, int escapeChar)
      Create an RLE input stream with the specified marker byte.
  • Method Details