Class PTCPPacket

java.lang.Object
ecmwf.common.transport.ptcp.psocket.tools.PTCPPacket

public class PTCPPacket extends Object
ECMWF Product Data Store (OpenECPDS) Project.
Since:
2024-07-01
Version:
6.7.7
Author:
Laurent Gougeon - syi@ecmwf.int, ECMWF.
  • Constructor Details

    • PTCPPacket

      public PTCPPacket(int number, byte[] data)
      Instantiates a new PTCP packet.
      Parameters:
      number - the number
      data - the data
  • Method Details

    • getData

      public byte[] getData()
      Gets the data.
      Returns:
      the data
    • getNumber

      public int getNumber()
      Gets the number.
      Returns:
      the number
    • getSize

      public int getSize()
      Gets the size.
      Returns:
      the size
    • toString

      public static String toString(int number, int size)
      To string.
      Parameters:
      number - the number
      size - the size
      Returns:
      the string
    • toString

      public String toString()
      To string.
      Overrides:
      toString in class Object