public class PlainBufferInputStream extends Object
| 构造器和说明 |
|---|
PlainBufferInputStream(byte[] buffer) |
PlainBufferInputStream(ByteBuffer buffer) |
| 限定符和类型 | 方法和说明 |
|---|---|
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 © 2025. All Rights Reserved.