Class CfdpHeader

java.lang.Object
org.yamcs.cfdp.pdu.CfdpHeader

public class CfdpHeader extends Object
  • Constructor Details

    • CfdpHeader

      public CfdpHeader(boolean fileDirective, boolean towardsSender, boolean acknowledged, boolean withCrc, int entityIdLength, int sequenceNumberLength, long sourceId, long destinationId, long sequenceNumber)
  • Method Details

    • copy

      public CfdpHeader copy()
    • copy

      public CfdpHeader copy(boolean fileDirective)
    • copy

      public CfdpHeader copy(boolean fileDirective, boolean towardsSender)
    • copyDirectionInverted

      public CfdpHeader copyDirectionInverted()
    • getTransactionId

      public CfdpTransactionId getTransactionId()
    • isFileDirective

      public boolean isFileDirective()
    • withCrc

      public boolean withCrc()
    • getEntityIdLength

      public int getEntityIdLength()
    • getSequenceNumberLength

      public int getSequenceNumberLength()
    • getSequenceNumber

      public long getSequenceNumber()
    • getDestinationId

      public long getDestinationId()
    • getSourceId

      public long getSourceId()
    • isAcknowledged

      public boolean isAcknowledged()
    • isLargeFile

      public boolean isLargeFile()
    • setLargeFile

      public void setLargeFile(boolean largeFile)
    • getDataLength

      public static int getDataLength(ByteBuffer buffer)
    • writeToBuffer

      protected void writeToBuffer(ByteBuffer buffer, int dataLength)
    • getLength

      public int getLength()
      Returns:
      the header length
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • toJson

      public String toJson()