public class BitstreamReader extends Object
| Modifier and Type | Field and Description |
|---|---|
protected static int |
bitsRead |
protected CharCache |
debugBits |
| Constructor and Description |
|---|
BitstreamReader(InputStream is) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
long |
getBitPosition() |
int |
getCurBit() |
boolean |
isByteAligned() |
boolean |
moreRBSPData() |
int |
peakNextBits(int n) |
int |
read1Bit() |
boolean |
readBool() |
int |
readByte() |
long |
readNBit(int n) |
long |
readRemainingByte() |
protected static int bitsRead
protected CharCache debugBits
public BitstreamReader(InputStream is) throws IOException
IOExceptionpublic boolean readBool()
throws IOException
IOExceptionpublic int read1Bit()
throws IOException
IOExceptionpublic long readNBit(int n)
throws IOException
IOExceptionpublic int readByte()
throws IOException
IOExceptionpublic boolean moreRBSPData()
throws IOException
IOExceptionpublic long getBitPosition()
public long readRemainingByte()
throws IOException
IOExceptionpublic int peakNextBits(int n)
throws IOException
IOExceptionpublic boolean isByteAligned()
public void close()
throws IOException
IOExceptionpublic int getCurBit()
Copyright © 2017. All rights reserved.