Class CfdpPacket

    • Constructor Detail

      • CfdpPacket

        protected CfdpPacket()
      • CfdpPacket

        protected CfdpPacket​(CfdpHeader header)
    • Method Detail

      • getDataFieldLength

        public abstract int getDataFieldLength()
      • getCFDPPacket

        public static CfdpPacket getCFDPPacket​(ByteBuffer bb)
                                        throws PduDecodingException
        Reads a CFDP PDU from the ByteBuffer which has to have the position set to 0.

        The buffer can contain more data than one PDU, at the end of the call the position will be set to the end of the PDU.

        In case of error (e.g. cannot decode header) a PduDecodingException is thrown and the position is undetermined.

        Throws:
        PduDecodingException
      • toByteArray

        public byte[] toByteArray()
      • writeToBuffer

        public void writeToBuffer​(ByteBuffer buffer)
      • writeCFDPPacket

        protected abstract void writeCFDPPacket​(ByteBuffer buffer)