public class BitInputStream extends Object
| Constructor and Description |
|---|
BitInputStream(InputStream inner) |
| Modifier and Type | Method and Description |
|---|---|
int |
availible() |
void |
close() |
void |
expect(Bits bits) |
<T extends Enum<T>> |
expect(Enum<T> expect) |
Bits |
peek(int bits) |
int |
peekIntCoord(int max) |
long |
peekLongCoord(long max) |
Bits |
read(int bits) |
Bits |
readAhead() |
Bits |
readAhead(int bytes) |
boolean |
readBool() |
long |
readBoundedLong(long max) |
char |
readChar() |
long |
readVarLong() |
short |
readVarShort() |
short |
readVarShort(int optimal) |
static BitInputStream |
toBitStream(byte[] data) |
public BitInputStream(InputStream inner)
public static BitInputStream toBitStream(byte[] data)
public void close()
throws IOException
IOExceptionpublic int availible()
throws IOException
IOExceptionpublic <T extends Enum<T>> void expect(Enum<T> expect) throws IOException
IOExceptionpublic void expect(Bits bits) throws IOException
IOExceptionpublic Bits read(int bits) throws IOException
IOExceptionpublic Bits peek(int bits) throws IOException
IOExceptionpublic Bits readAhead() throws IOException
IOExceptionpublic Bits readAhead(int bytes) throws IOException
IOExceptionpublic boolean readBool()
throws IOException
IOExceptionpublic long readBoundedLong(long max)
throws IOException
IOExceptionpublic long readVarLong()
throws IOException
IOExceptionpublic long peekLongCoord(long max)
throws IOException
IOExceptionpublic int peekIntCoord(int max)
throws IOException
IOExceptionpublic short readVarShort()
throws IOException
IOExceptionpublic short readVarShort(int optimal)
throws IOException
IOExceptionpublic char readChar()
throws IOException
IOExceptionCopyright © 2019 SimiaCryptus Software. All rights reserved.