com.ibm.as400.util.commtrace
Class UDPHeader
- java.lang.Object
-
- com.ibm.as400.util.commtrace.Header
-
- com.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.
-
-
Method Summary
Methods Modifier and Type Method and Description byte[]
getByteData()
Returns the raw data of this record.java.lang.String
getData()
Returns the raw data of this record.java.lang.String
getDstPort()
Returns the destination port of this UDP Header.int
getHeaderLen()
Returns the length of this header.java.lang.String
getLength()
Returns the length of this UDP Header.java.lang.String
getSrcPort()
Returns the source port of this UDP Header.java.lang.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
-
-
-
-
Method Detail
-
getHeaderLen
public int getHeaderLen()
Returns the length of this header.- Overrides:
getHeaderLen
in classHeader
- Returns:
- Will always return 64.
-
toString
public java.lang.String toString(FormatProperties filter)
Returns a printable representation of this header.
-
getSrcPort
public java.lang.String getSrcPort()
Returns the source port of this UDP Header.- Returns:
- String containing a decimal representation of the source port.
-
getDstPort
public java.lang.String getDstPort()
Returns the destination port of this UDP Header.- Returns:
- String containing a decimal representation of the destination port.
-
getLength
public java.lang.String getLength()
Returns the length of this UDP Header.- Returns:
- String containing a decimal representation of the length port.
-
getData
public java.lang.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.
-
-