Class DataFile


  • public class DataFile
    extends Object
    • Constructor Detail

      • DataFile

        public DataFile()
      • DataFile

        public DataFile​(long maxSize)
    • Method Detail

      • getReceivedSize

        public long getReceivedSize()
      • getData

        public byte[] getData()
        public long getSize() { Long last = dataFileSegments.lastKey(); return last + dataFileSegments.get(last).getLength(); }
      • isComplete

        public boolean isComplete()
        Returns:
        true if all the data has been received
      • getChecksum

        public long getChecksum()