Package org.yamcs.cfdp.pdu
Class FileDataPacket
java.lang.Object
org.yamcs.cfdp.pdu.CfdpPacket
org.yamcs.cfdp.pdu.FileDataPacket
Structure is
offset - 4 bytes file data - variableThe version 5 of the CFDP standard introduces some metadata. This is not supported.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.yamcs.cfdp.pdu.CfdpPacket
CfdpPacket.TransmissionMode
-
Field Summary
Fields inherited from class org.yamcs.cfdp.pdu.CfdpPacket
CFDP, header
-
Constructor Summary
ConstructorDescriptionFileDataPacket
(byte[] fileData, long offset, CfdpHeader header) FileDataPacket
(ByteBuffer buffer, CfdpHeader header) -
Method Summary
Modifier and TypeMethodDescriptionbyte[]
getData()
int
long
int
long
toString()
protected void
writeCFDPPacket
(ByteBuffer buffer) Methods inherited from class org.yamcs.cfdp.pdu.CfdpPacket
fromTuple, getCFDPPacket, getHeader, getTransactionId, toByteArray, toTuple, toTuple, toTuple, writeToBuffer
-
Field Details
-
OFFSET_SIZE
public static final int OFFSET_SIZE- See Also:
-
-
Constructor Details
-
FileDataPacket
-
FileDataPacket
-
-
Method Details
-
getOffset
public long getOffset() -
getData
public byte[] getData() -
getEndOffset
public long getEndOffset() -
getLength
public int getLength() -
writeCFDPPacket
- Specified by:
writeCFDPPacket
in classCfdpPacket
-
getDataFieldLength
public int getDataFieldLength()- Specified by:
getDataFieldLength
in classCfdpPacket
-
toString
-