Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

plp.link.plpframeparser
Class CRCParser  view CRCParser download CRCParser.java

java.lang.Object
  extended bytools.AbstractByteArrayParser
      extended byplp.link.plpframeparser.CRCParser
All Implemented Interfaces:
tools.ByteArrayParser

public class CRCParser
extends tools.AbstractByteArrayParser

Parses the CRC part of the frame The CRC part is at least 2 bytes long, and has a max length of 4 getParsedData() always returns 2 bytes when the parse() returns true. The CRC part may be stuffed


Field Summary
private  tools.bytestuffer.ByteStuffer crcStuffer
           
 
Fields inherited from class tools.AbstractByteArrayParser
 
Constructor Summary
CRCParser()
           
 
Method Summary
protected  tools.bytestuffer.ByteStuffer getByteStuffer()
           
 boolean parse(byte[] data, int startIndex, int endIndex)
           
 
Methods inherited from class tools.AbstractByteArrayParser
getEndIndex, getParsedData, 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

crcStuffer

private tools.bytestuffer.ByteStuffer crcStuffer
Constructor Detail

CRCParser

public CRCParser()
Method Detail

parse

public boolean parse(byte[] data,
                     int startIndex,
                     int endIndex)

getByteStuffer

protected tools.bytestuffer.ByteStuffer getByteStuffer()