Class ByteArrayBitInputStream

java.lang.Object
de.jarnbjo.util.io.ByteArrayBitInputStream
All Implemented Interfaces:
BitInputStream

public class ByteArrayBitInputStream
extends java.lang.Object
implements BitInputStream
  • Constructor Details

    • ByteArrayBitInputStream

      public ByteArrayBitInputStream​(byte[] byteArray)
    • ByteArrayBitInputStream

      public ByteArrayBitInputStream​(byte[] byteArray, int int1)
  • Method Details

    • getBit

      public boolean getBit() throws java.io.IOException
      Specified by:
      getBit in interface BitInputStream
      Throws:
      java.io.IOException
    • getInt

      public int getInt​(int int1) throws java.io.IOException
      Specified by:
      getInt in interface BitInputStream
      Throws:
      java.io.IOException
    • getSignedInt

      public int getSignedInt​(int int1) throws java.io.IOException
      Specified by:
      getSignedInt in interface BitInputStream
      Throws:
      java.io.IOException
    • getInt

      public int getInt​(HuffmanNode huffmanNode) throws java.io.IOException
      Specified by:
      getInt in interface BitInputStream
      Throws:
      java.io.IOException
    • getLong

      public long getLong​(int int1) throws java.io.IOException
      Specified by:
      getLong in interface BitInputStream
      Throws:
      java.io.IOException
    • readSignedRice

      public int readSignedRice​(int int1) throws java.io.IOException
      Specified by:
      readSignedRice in interface BitInputStream
      Throws:
      java.io.IOException
    • readSignedRice

      public void readSignedRice​(int int1, int[] intArray, int int2, int int3) throws java.io.IOException
      Specified by:
      readSignedRice in interface BitInputStream
      Throws:
      java.io.IOException
    • align

      public void align()
      Specified by:
      align in interface BitInputStream
    • setEndian

      public void setEndian​(int int1)
      Specified by:
      setEndian in interface BitInputStream
    • getSource

      public byte[] getSource()