net.clackrouter.ethereal.parser
Class TCPParser

java.lang.Object
  extended by net.clackrouter.ethereal.parser.PacketParser
      extended by net.clackrouter.ethereal.parser.TCPParser

public class TCPParser
extends PacketParser


Field Summary
 
Fields inherited from class net.clackrouter.ethereal.parser.PacketParser
dataLen, dataStart, hex, typeLen, typeStart
 
Method Summary
 java.lang.String getInfo(byte[] packet)
           
 java.lang.String getProtocol(byte[] packet)
           
 EtherealTreeNode getTree(byte[] packet)
           
protected  byte[] strip(byte[] packet)
          You can override this or just set variables dataStart and dataLen.
 
Methods inherited from class net.clackrouter.ethereal.parser.PacketParser
charFormat, charFormat, decimalFormat, decimalFormat, getDst, getSrc, getTableModel, getType, hexFormat, hexFormat, MACFormat, MACFormat, makeNode, makeNode, makeNode, nextInfo, nextNode, nextProtocol
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

strip

protected byte[] strip(byte[] packet)
Description copied from class: PacketParser
You can override this or just set variables dataStart and dataLen. If dataLen == 0 then it is set to be the packet.length - dataStart

Overrides:
strip in class PacketParser

getProtocol

public java.lang.String getProtocol(byte[] packet)
Specified by:
getProtocol in class PacketParser

getInfo

public java.lang.String getInfo(byte[] packet)
Specified by:
getInfo in class PacketParser

getTree

public EtherealTreeNode getTree(byte[] packet)
Specified by:
getTree in class PacketParser