Class DataFile

java.lang.Object
org.yamcs.cfdp.DataFile

public class DataFile extends Object
  • Constructor Details

    • DataFile

      public DataFile()
    • DataFile

      public DataFile(long size)
  • Method Details

    • addSegment

      public void addSegment(DataFileSegment newseg)
    • getMissingChunks

      public List<SegmentRequest> getMissingChunks()
    • getMissingChunks

      public List<SegmentRequest> getMissingChunks(boolean includeEnd)
      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()