public class ResponseParser
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
ResponseParser.BadDataException |
static class |
ResponseParser.ChecksumErrorException |
Constructor and Description |
---|
ResponseParser() |
Modifier and Type | Method and Description |
---|---|
byte[] |
getBuffer() |
int |
getLength() |
int |
parseByte() |
int |
parseDoubleByte() |
void |
parseErrCode() |
int |
parseQuadByte() |
java.lang.String |
parseString() |
void |
reset(int len) |
java.lang.String |
toString() |
public java.lang.String toString()
toString
in class java.lang.Object
public byte[] getBuffer()
public void reset(int len) throws ResponseParser.ChecksumErrorException, ResponseParser.BadDataException
public java.lang.String parseString() throws java.lang.Exception
java.lang.Exception
public int parseByte() throws ResponseParser.BadDataException
ResponseParser.BadDataException
public void parseErrCode() throws ResponseParser.BadDataException
ResponseParser.BadDataException
public int parseDoubleByte() throws ResponseParser.BadDataException
ResponseParser.BadDataException
public int parseQuadByte() throws ResponseParser.BadDataException
ResponseParser.BadDataException
public int getLength()