com.ibm.as400.util.commtrace
Class IP4Packet

java.lang.Object
  extended bycom.ibm.as400.util.commtrace.IPPacket
      extended bycom.ibm.as400.util.commtrace.IP4Packet

public class IP4Packet
extends IPPacket

A Internet Protocolv4 IPPacket.
Extends Packets' methods to parse, print, and allow easy access to the IPv4 IPPacket
It has one constructor which takes a byte array of packet data as its only argument.


Field Summary
 
Fields inherited from class com.ibm.as400.util.commtrace.IPPacket
ARP, IP4, IP6, RARP, UNK
 
Constructor Summary
IP4Packet(byte[] data)
          Creates and parses the data of this header.
 
Method Summary
 String toString(FormatProperties filter)
          Returns a printable representation of this packet.
 
Methods inherited from class com.ibm.as400.util.commtrace.IPPacket
getHeader, getName, getType, setType
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IP4Packet

public IP4Packet(byte[] data)
Creates and parses the data of this header.

Parameters:
data - The raw data of this header.
Method Detail

toString

public String toString(FormatProperties filter)
Returns a printable representation of this packet.

Overrides:
toString in class IPPacket
Parameters:
filter - FormatProperties object for filtering this packet.
Returns:
Returns a string representation of this packet.