public class BitStream extends Object implements IBitStream
| Modifier and Type | Field and Description |
|---|---|
protected int |
bitsCached |
protected int |
position |
| Constructor and Description |
|---|
BitStream() |
| Modifier and Type | Method and Description |
|---|---|
void |
byteAlign() |
static BitStream |
createBitStream(byte[] data) |
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 static BitStream createBitStream(byte[] data)
public void destroy()
destroy in interface IBitStreampublic final void setData(byte[] data)
setData in interface IBitStreampublic void byteAlign()
throws AACException
byteAlign in interface IBitStreamAACExceptionpublic final void reset()
reset in interface IBitStreampublic int getPosition()
getPosition in interface IBitStreampublic int getBitsLeft()
getBitsLeft in interface IBitStreamprotected int readCache(boolean peek)
throws AACException
peek - if true, the stream pointer will not be increasedAACExceptionpublic int readBits(int n)
throws AACException
readBits in interface IBitStreamAACExceptionpublic int readBit()
throws AACException
readBit in interface IBitStreamAACExceptionpublic boolean readBool()
throws AACException
readBool in interface IBitStreamAACExceptionpublic int peekBits(int n)
throws AACException
peekBits in interface IBitStreamAACExceptionpublic int peekBit()
throws AACException
peekBit in interface IBitStreamAACExceptionpublic void skipBits(int n)
throws AACException
skipBits in interface IBitStreamAACExceptionpublic void skipBit()
throws AACException
skipBit in interface IBitStreamAACExceptionpublic int maskBits(int n)
maskBits in interface IBitStreamCopyright © 2019. All rights reserved.