public Response put(InputStream stream, String key, String token, StringMap params,
                        String mime) throws QiniuException {
        String message = null;
        if (stream == null) {
            message = "no input data";
        } else if (token == null || token.equals("")) {
            message = "no token";
        }
        if (message != null) {
            throw new IllegalArgumentException(message);
        }
        StreamUploader uploader = new StreamUploader(client, token, key, stream,
                params, mime, configuration);
        return uploader.upload();
    }
public Response put ( InputStream stream , String key , String token , StringMap params , String mime ) throws QiniuException { String message = null ; if ( stream == null ) { message = "no input data" ; } else if ( token == null || token . equals ( "" ) ) { message = "no token" ; } if ( message != null ) { throw new IllegalArgumentException ( message ) ; } StreamUploader uploader = new StreamUploader ( client , token , key , stream , params , mime , configuration ) ; return uploader . upload ( ) ; }
流式上传，通常情况建议文件上传，可以使用持久化的断点记录。

@param stream sha
@param key    上传文件保存的文件名
@param token  上传凭证
@param params 自定义参数，如 params.put("x:foo", "foo")
@param mime   指定文件mimetype