Class 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.
      • Methods inherited from class java.io.InputStream

        available, close, mark, markSupported, nullInputStream, read, read, readAllBytes, readNBytes, readNBytes, reset, skip, transferTo
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • RleInputStream

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

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

      • read

        public int read()
                 throws java.io.IOException
        Read the next byte from the input stream.
        Specified by:
        read in class java.io.InputStream
        Throws:
        java.io.IOException