Package org.yamcs.cfdp.pdu
Class CfdpHeader
java.lang.Object
org.yamcs.cfdp.pdu.CfdpHeader
-
Constructor Summary
ConstructorDescriptionCfdpHeader
(boolean fileDirective, boolean towardsSender, boolean acknowledged, boolean withCrc, int entityIdLength, int sequenceNumberLength, long sourceId, long destinationId, long sequenceNumber) -
Method Summary
Modifier and TypeMethodDescriptioncopy()
copy
(boolean fileDirective) copy
(boolean fileDirective, boolean towardsSender) static int
getDataLength
(ByteBuffer buffer) long
int
int
long
int
long
boolean
boolean
boolean
void
setLargeFile
(boolean largeFile) toJson()
toString()
boolean
withCrc()
protected void
writeToBuffer
(ByteBuffer buffer, int dataLength)
-
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
-
copy
-
copy
-
copyDirectionInverted
-
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
-
writeToBuffer
-
getLength
public int getLength()- Returns:
- the header length
-
toString
-
toJson
-