public float getProgress() {
    if (fileSize == 0) {
      return 1.0f;
    }
    return (float) bytesRead / (float) fileSize;
  }
Returns the proportion of the file that has been read, as a number between 0.0 and 1.0.
hbase-it/src/test/java/org/apache/hadoop/hbase/test/util/warc/WARCFileReader.java