/** return progress based on the amount of data processed so far. */
 public float getProgress() throws IOException, InterruptedException {
   long subprogress = 0; // bytes processed in current split
   if (null != curReader) {
     // idx is always one past the current subsplit's true index.
     subprogress = (long) (curReader.getProgress() * split.getLength(idx - 1));
   }
   return Math.min(1.0f, (progress + subprogress) / (float) (split.getLength()));
 }
예제 #2
0
 @Override
 public float getProgress() throws IOException, InterruptedException {
   return unfiltered.getProgress();
 }
예제 #3
0
 /** Request progress from proxied RR. */
 public float getProgress() throws IOException, InterruptedException {
   return rr.getProgress();
 }
 @Override
 public float getProgress() throws IOException, InterruptedException {
   return originalRR.getProgress();
 }