@Override public void end() { fileUploadStats.setBytesRead(fileUploadStats.getTotalSize()); fileUploadStats.setCurrentStatus("end"); }
@Override public void readBytes(int byteCount) { fileUploadStats.incrementBytesRead(byteCount); fileUploadStats.setCurrentStatus("reading"); }
@Override public void error(String s) { fileUploadStats.setCurrentStatus("error"); }
@Override public void begin() { fileUploadStats.setCurrentStatus("begin"); }