com.ibm.as400.util.commtrace

Class 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 Detail

      • getHeaderLen

        public int getHeaderLen()
        Returns the length of this header.
        Overrides:
        getHeaderLen in class Header
        Returns:
        Will always return 64.
      • toString

        public java.lang.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 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.