Package org.yamcs.cfdp.pdu
Class CfdpHeader
java.lang.Object
org.yamcs.cfdp.pdu.CfdpHeader
-
Constructor Summary
ConstructorsConstructorDescriptionCfdpHeader(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 intgetDataLength(ByteBuffer buffer) longintintlongintlongbooleanbooleanbooleanvoidsetLargeFile(boolean largeFile) toJson()toString()booleanwithCrc()protected voidwriteToBuffer(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
-