Package org.yamcs.cfdp.pdu
Class CfdpHeader
- java.lang.Object
-
- org.yamcs.cfdp.pdu.CfdpHeader
-
public class CfdpHeader extends Object
-
-
Constructor Summary
Constructors Constructor Description CfdpHeader(boolean fileDirective, boolean towardsSender, boolean acknowledged, boolean withCrc, int datalength, int entityIdLength, int sequenceNumberLength, long sourceId, long destinationId, long sequenceNumber)
CfdpHeader(boolean fileDirective, boolean towardsSender, boolean acknowledged, boolean withCrc, int entityIdLength, int sequenceNumberLength, long sourceId, long destinationId, long sequenceNumber)
CfdpHeader(ByteBuffer buffer)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static int
getDataLength(ByteBuffer buffer)
long
getDestinationId()
int
getEntityIdLength()
int
getLength()
long
getSequenceNumber()
int
getSequenceNumberLength()
long
getSourceId()
CfdpTransactionId
getTransactionId()
boolean
isAcknowledged()
boolean
isFileDirective()
boolean
isLargeFile()
void
setLargeFile(boolean largeFile)
String
toString()
boolean
withCrc()
protected void
writeToBuffer(ByteBuffer buffer, int dataLength)
-
-
-
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
-
getTransactionId
public CfdpTransactionId 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
public static int getDataLength(ByteBuffer buffer)
-
writeToBuffer
protected void writeToBuffer(ByteBuffer buffer, int dataLength)
-
getLength
public int getLength()
- Returns:
- the header length
-
-