Class FileDataPacket

java.lang.Object
org.yamcs.cfdp.pdu.CfdpPacket
org.yamcs.cfdp.pdu.FileDataPacket

public class FileDataPacket extends CfdpPacket
Structure is
 offset - 4 bytes
 file data - variable
 
The version 5 of the CFDP standard introduces some metadata. This is not supported.
  • Field Details

  • Constructor Details

    • FileDataPacket

      public FileDataPacket(byte[] fileData, long offset, CfdpHeader header)
    • FileDataPacket

      public FileDataPacket(ByteBuffer buffer, CfdpHeader header)
  • Method Details

    • getOffset

      public long getOffset()
    • getData

      public byte[] getData()
    • getEndOffset

      public long getEndOffset()
    • getLength

      public int getLength()
    • writeCFDPPacket

      protected void writeCFDPPacket(ByteBuffer buffer)
      Specified by:
      writeCFDPPacket in class CfdpPacket
    • getDataFieldLength

      public int getDataFieldLength()
      Specified by:
      getDataFieldLength in class CfdpPacket
    • toString

      public String toString()
      Overrides:
      toString in class Object