Package com.snda.everbox.fs

Examples of com.snda.everbox.fs.UploadProgressListener


          log.infof("开始上传第%d段",info.getIndex());
          raf.seek(info.getIndex() * Constants.FILE_CHUNK_SIZE);
          sb = new StringBuilder();
          EverBoxJsonProxy ebjp = new EverBoxJsonProxy();
          if(info.getIndex() + 1 < part) {
            rc = ebjp.CallPostFileStream(info.getUrl(), raf, Constants.FILE_CHUNK_SIZE, sb, new UploadProgressListener());
          } else {
            rc = ebjp.CallPostFileStream(info.getUrl(), raf, (int)lastPartsize, sb, new UploadProgressListener());
          }

          if(rc != 200) {
            log.info("上传出错啦!! "+ sb.toString() + " " + ebo.getPath());
            return;
View Full Code Here

TOP

Related Classes of com.snda.everbox.fs.UploadProgressListener

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.