public class PlainBufferInputStream extends Object
| Constructor and Description |
|---|
PlainBufferInputStream(byte[] buffer) |
PlainBufferInputStream(ByteBuffer buffer) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
checkLastTagWas(int tag) |
int |
getLastTag() |
boolean |
isAtEnd() |
boolean |
readBoolean() |
byte[] |
readBytes(int size) |
double |
readDouble() |
long |
readInt64() |
byte |
readRawByte() |
int |
readRawLittleEndian32() |
long |
readRawLittleEndian64() |
int |
readTag() |
int |
readUInt32() |
String |
readUTFString(int size) |
String |
toString() |
public PlainBufferInputStream(ByteBuffer buffer)
public PlainBufferInputStream(byte[] buffer)
public boolean isAtEnd()
public int readTag()
throws IOException
IOExceptionpublic boolean checkLastTagWas(int tag)
public int getLastTag()
public byte readRawByte()
throws IOException
IOExceptionpublic long readRawLittleEndian64()
throws IOException
IOExceptionpublic int readRawLittleEndian32()
throws IOException
IOExceptionpublic boolean readBoolean()
throws IOException
IOExceptionpublic double readDouble()
throws IOException
IOExceptionpublic int readUInt32()
throws IOException
IOExceptionpublic long readInt64()
throws IOException
IOExceptionpublic byte[] readBytes(int size)
throws IOException
IOExceptionpublic String readUTFString(int size) throws IOException
IOExceptionCopyright © 2024. All Rights Reserved.