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