org.jcodec.common.io
Class BitReader

java.lang.Object
  extended by org.jcodec.common.io.BitReader

public class BitReader
extends Object

This class is part of JCodec ( www.jcodec.org ) This software is distributed under FreeBSD License

Author:
The JCodec project

Field Summary
protected  int curInt
           
protected  int deficit
           
 
Constructor Summary
BitReader(ByteBuffer bb)
           
 
Method Summary
 int align()
           
 int checkNBit(int n)
           
 int curBit()
           
 BitReader fork()
           
 boolean isByteAligned()
           
 boolean lastByte()
           
 boolean moreData()
           
 int read1Bit()
           
 int readInt()
           
 int readNBit(int n)
           
 int remaining()
           
 int skip(int bits)
           
 void terminate()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

deficit

protected int deficit

curInt

protected int curInt
Constructor Detail

BitReader

public BitReader(ByteBuffer bb)
Method Detail

readInt

public final int readInt()

read1Bit

public int read1Bit()

readNBit

public int readNBit(int n)

moreData

public boolean moreData()

remaining

public int remaining()

isByteAligned

public final boolean isByteAligned()

skip

public int skip(int bits)

align

public int align()

checkNBit

public int checkNBit(int n)

curBit

public int curBit()

lastByte

public boolean lastByte()

fork

public BitReader fork()

terminate

public void terminate()


Copyright © 2013. All Rights Reserved.