Class CfdpHeader


  • public class CfdpHeader
    extends Object
    • Constructor Detail

      • CfdpHeader

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

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

        public CfdpHeader​(ByteBuffer buffer)
    • Method Detail

      • 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