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
AACException
public 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 increasedAACException
public int readBits(int n) throws AACException
AACException
public int readBit() throws AACException
AACException
public boolean readBool() throws AACException
AACException
public int peekBits(int n) throws AACException
AACException
public int peekBit() throws AACException
AACException
public void skipBits(int n) throws AACException
AACException
public void skipBit() throws AACException
AACException
public int maskBits(int n)