public class MessageReader extends Object
| Constructor and Description |
|---|
MessageReader(byte[] bytes) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canRead() |
long |
getLength() |
byte |
peek() |
void |
purge() |
byte |
readByte() |
byte[] |
readBytes(int length) |
char |
readChar() |
ControlCodes |
readCode() |
<T extends Enum<T> & IByteConstant> |
readEnum(Class<T> enumType) |
byte[] |
readRemainingBytes() |
String |
readString(int length) |
String |
readToCode(ControlCodes code) |
String |
readToCode(ControlCodes code,
boolean removeCode) |
public long getLength()
public boolean canRead()
public byte peek()
public ControlCodes readCode()
public <T extends Enum<T> & IByteConstant> T readEnum(Class<T> enumType)
public byte readByte()
public byte[] readBytes(int length)
public byte[] readRemainingBytes()
public char readChar()
public String readString(int length)
public String readToCode(ControlCodes code)
public String readToCode(ControlCodes code, boolean removeCode)
public void purge()
Copyright © 2024. All rights reserved.