com.ibm.as400.util.commtrace
Class UDPHeader

java.lang.Object
  extended bycom.ibm.as400.util.commtrace.Header
      extended bycom.ibm.as400.util.commtrace.UDPHeader

public class UDPHeader
extends Header

An UDP Header.
Extends Header's methods to parse, print, and allow easy access to the UDP Header.


Field Summary
 
Fields inherited from class com.ibm.as400.util.commtrace.Header
EXTAH, EXTDEST, EXTESP, EXTFRAG, EXTHOPBYHOP, EXTROUTE, ICMP4, ICMP6, IP4, IP6, TCP, UDP, UNK
 
Method Summary
 byte[] getByteData()
          Returns the raw data of this record.
 String getData()
          Returns the raw data of this record.
 String getDstPort()
          Returns the destination port of this UDP Header.
 int getHeaderLen()
          Returns the length of this header.
 String getLength()
          Returns the length of this UDP Header.
 String getSrcPort()
          Returns the source port of this UDP Header.
 String toString(FormatProperties filter)
          Returns a printable representation of this header.
 
Methods inherited from class com.ibm.as400.util.commtrace.Header
getHeaderData, getName, getNextHeader, getPayload, getPayLoad, getPayloadBytes, getPayloadHexString, getType, printHexHeader, toHexString, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

getHeaderLen

public int getHeaderLen()
Returns the length of this header.

Overrides:
getHeaderLen in class Header
Returns:
Will always return 64.

toString

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

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

getSrcPort

public String getSrcPort()
Returns the source port of this UDP Header.

Returns:
String containing a decimal representation of the source port.

getDstPort

public String getDstPort()
Returns the destination port of this UDP Header.

Returns:
String containing a decimal representation of the destination port.

getLength

public String getLength()
Returns the length of this UDP Header.

Returns:
String containing a decimal representation of the length port.

getData

public String getData()
Returns the raw data of this record.

Returns:
String containing a hexadecimal representation of the data.

getByteData

public byte[] getByteData()
Returns the raw data of this record.

Returns:
byte[] containing the data.