public class BitStream
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
protected int |
bitsCached |
protected int |
position |
| Modifier and Type | Method and Description |
|---|---|
void |
byteAlign() |
void |
destroy() |
int |
getBitsLeft() |
int |
getPosition() |
int |
maskBits(int n) |
int |
peekBit() |
int |
peekBits(int n) |
int |
readBit() |
int |
readBits(int n) |
boolean |
readBool() |
protected int |
readCache(boolean peek)
Reads the next four bytes.
|
void |
reset() |
void |
setData(byte[] data) |
void |
skipBit() |
void |
skipBits(int n) |
public void destroy()
public final void setData(byte[] data)
public void byteAlign()
throws AACException
AACExceptionpublic final void reset()
public int getPosition()
public int getBitsLeft()
protected int readCache(boolean peek)
throws AACException
peek - if true, the stream pointer will not be increasedAACExceptionpublic int readBits(int n)
throws AACException
AACExceptionpublic int readBit()
throws AACException
AACExceptionpublic boolean readBool()
throws AACException
AACExceptionpublic int peekBits(int n)
throws AACException
AACExceptionpublic int peekBit()
throws AACException
AACExceptionpublic void skipBits(int n)
throws AACException
AACExceptionpublic void skipBit()
throws AACException
AACExceptionpublic int maskBits(int n)