Package org.yamcs.cfdp
Class DataFile
java.lang.Object
org.yamcs.cfdp.DataFile
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addSegment
(DataFileSegment newseg) long
return end of the last segment or -1 if not knownlong
byte[]
getData()
getMissingChunks
(boolean includeEnd) Returns the missing data segments.long
long
getSize()
boolean
void
setSize
(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.
-
getChecksum
public long getChecksum() -
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()
-