|
|||||||||
| Home >> All >> plp >> link >> [ plpframeparser overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
plp.link.plpframeparser
Class PLPFrameParser

java.lang.Objecttools.AbstractByteArrayParser
plp.link.plpframeparser.PLPFrameParser
- All Implemented Interfaces:
- tools.ByteArrayParser
- public class PLPFrameParser
- extends tools.AbstractByteArrayParser
Parses raw data into a PLPFrame. **************************************************** * n * 1 * 1 * 1 * 1 * n * 1 * 1 *2-4* n * * rubbish*ETB*DLE*STX*C/S*DAT*DLE*ETX*CRC* rubbish * **************************************************** this.getStartIndex indicated ETB, this.getEndIndex indicates the last index of the frame
| Field Summary | |
private byte[] |
contSeqAndData
|
private ContSeqParser |
contSeqParser
|
private tools.ByteArrayParser |
crcParser
|
private tools.ByteArrayParser |
dataParser
|
private tools.bytestuffer.ByteStuffer |
dataStuffer
|
private tools.ByteArrayParser |
endBytesParser
|
private tools.ByteArrayParser |
startBytesParser
|
| Fields inherited from class tools.AbstractByteArrayParser |
|
| Constructor Summary | |
PLPFrameParser()
|
|
| Method Summary | |
byte |
getCont()
|
byte[] |
getContSeqAndData()
|
protected ContSeqParser |
getContSeqParser()
|
byte[] |
getCRC()
|
protected tools.ByteArrayParser |
getCRCParser()
|
byte[] |
getData()
|
protected tools.ByteArrayParser |
getDataParser()
|
protected tools.bytestuffer.ByteStuffer |
getDataStuffer()
|
protected tools.ByteArrayParser |
getEndBytesParser()
|
byte[] |
getParsedData()
|
int |
getSequence()
|
protected tools.ByteArrayParser |
getStartBytesParser()
|
boolean |
parse(byte[] data,
int startIndex,
int endIndex)
|
plp.link.PLPFrame |
parseFrame(byte[] data,
int startIndex,
int endIndex)
|
private void |
setContSeqAndData(byte[] contSeqAndData)
|
| Methods inherited from class tools.AbstractByteArrayParser |
getEndIndex, getStartIndex, parse, setEndIndex, setParsedData, setStartIndex |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
startBytesParser
private tools.ByteArrayParser startBytesParser
endBytesParser
private tools.ByteArrayParser endBytesParser
crcParser
private tools.ByteArrayParser crcParser
dataParser
private tools.ByteArrayParser dataParser
contSeqParser
private ContSeqParser contSeqParser
dataStuffer
private tools.bytestuffer.ByteStuffer dataStuffer
contSeqAndData
private byte[] contSeqAndData
| Constructor Detail |
PLPFrameParser
public PLPFrameParser()
| Method Detail |
parse
public boolean parse(byte[] data,
int startIndex,
int endIndex)
getParsedData
public byte[] getParsedData()
getContSeqAndData
public byte[] getContSeqAndData()
setContSeqAndData
private void setContSeqAndData(byte[] contSeqAndData)
getStartBytesParser
protected tools.ByteArrayParser getStartBytesParser()
getEndBytesParser
protected tools.ByteArrayParser getEndBytesParser()
getCRCParser
protected tools.ByteArrayParser getCRCParser()
getDataParser
protected tools.ByteArrayParser getDataParser()
getContSeqParser
protected ContSeqParser getContSeqParser()
getCont
public byte getCont()
getSequence
public int getSequence()
getCRC
public byte[] getCRC()
getData
public byte[] getData()
parseFrame
public plp.link.PLPFrame parseFrame(byte[] data, int startIndex, int endIndex)
getDataStuffer
protected tools.bytestuffer.ByteStuffer getDataStuffer()
|
|||||||||
| Home >> All >> plp >> link >> [ plpframeparser overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
JAVADOC