/*
 * @(#)FileProgressReporter.java  0.6 2013 May 14
 * 
 * Copyright (c) 2013 Amherst Robots, Inc.
 * All rigts reserved.
 * 
 * See LICENSE file accompanying this file.
 */
package com.vrane.metaGlacier;

/**
 * Implement this to receive file progress from a long running process like
 * upload or download.
 * 
 * @author K Z Win
 */
public interface FileProgressReporter {

    /**
     * Sets the current file position in bytes.
     * 
     * @param position
     */
    abstract void setFilePosition(final long position);

    /**
     * Sets the total file size.
     * 
     * @param size
     */
    abstract void setFileSize(final long size);

    /**
     * Sets total size of all files by passing the position of the current file.
     * Implement this only if your class involves handling multiple files.
     *
     * @param pos is the current file position in bytes.
     */
    abstract void updateTotalSize(final long pos);
    
}

@@ -457,16 +457,45 @@
 position
+ is the current file position
 %0A     */
@@ -576,22 +576,16 @@
 ets the 
-total 
 file siz
@@ -613,16 +613,39 @@
 ram size
+ the file size in bytes
 %0A     */
@@ -709,20 +709,27 @@
 %0A     * 
-Sets
+Reports the
  total s
@@ -732,18 +732,35 @@
 al size 
-of
+uploaded so far for
  all fil
@@ -776,16 +776,23 @@
 sing the
+%0A     *
  positio
@@ -887,16 +887,54 @@
 le files
+;%0A     * otherwise implement as no-ops
 .%0A     *
@@ -955,32 +955,24 @@
  pos is the 
-current 
 file positio
@@ -973,32 +973,52 @@
 osition in bytes
+ of the current file
 .%0A     */%0A    ab

fix documentation