Package org.yamcs.cfdp
Class DataFile
java.lang.Object
org.yamcs.cfdp.DataFile
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddSegment(FileDataPacket fdp) static intcheckMaxSize(long size) longreturn end of the last segment or -1 if not knownbyte[]getData()getMissingChunks(boolean includeEnd) Returns the missing data segments.longlonglonggetSize()booleanvoidsetSize(long size)
-
Constructor Details
-
DataFile
public DataFile() -
DataFile
public DataFile(long size)
-
-
Method Details
-
addSegment
-
getMissingChunks
-
getMissingChunks
Returns the missing data segments.includeEnd = false is used when the file has been partially transfer to not return a segment covering the end of the file
- Parameters:
includeEnd-- Returns:
-
getReceivedSize
public long getReceivedSize() -
getData
public byte[] getData() -
isComplete
public boolean isComplete()- Returns:
- true if all the data has been received. If size is not known return false.
-
getModularChecksum
public long getModularChecksum() -
endOfFileOffset
public long endOfFileOffset()return end of the last segment or -1 if not known- Returns:
-
setSize
public void setSize(long size) -
getSize
public long getSize() -
checkMaxSize
public static int checkMaxSize(long size)
-