Class RleOutputStream

java.lang.Object
java.io.OutputStream
com.webcodepro.shrinkit.io.RleOutputStream
All Implemented Interfaces:
Closeable, Flushable, AutoCloseable

public class RleOutputStream extends OutputStream
The RleOutputStream 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

    • RleOutputStream

      public RleOutputStream(OutputStream bs)
      Create an RLE output stream with the default marker byte.
    • RleOutputStream

      public RleOutputStream(OutputStream os, int escapeChar)
      Create an RLE output stream with the specified marker byte.
  • Method Details