本文整理了Java中org.dspace.core.Utils.bufferedCopy()
方法的一些代码示例,展示了Utils.bufferedCopy()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Utils.bufferedCopy()
方法的具体详情如下:
包路径:org.dspace.core.Utils
类名称:Utils
方法名:bufferedCopy
[英]Copy stream-data from source to destination, with buffering. This is equivalent to passing #copya java.io.BufferedInputStream
and java.io.BufferedOutputStream
to #copy, and flushing the output stream afterwards. The streams are not closed after the copy.
[中]使用缓冲将流数据从源复制到目标。这相当于将#copyajava.io.BufferedInputStream
和java.io.BufferedOutputStream
传递给#copy,然后刷新输出流。复制后,流不会关闭。
代码示例来源:origin: org.dspace/dspace-jspui-api
Utils.bufferedCopy(is, response.getOutputStream());
代码示例来源:origin: DSpace/DSpace
Utils.bufferedCopy(dis, fos);
in.close();
代码示例来源:origin: org.dspace/dspace-xmlui-api
Utils.bufferedCopy(is, this.out);
is.close();
this.out.flush();
代码示例来源:origin: DSpace/DSpace
InputStream is = bitstreamService.retrieve(c, bitstream);
FileOutputStream fos = new FileOutputStream(fout);
Utils.bufferedCopy(is, fos);
代码示例来源:origin: org.dspace/dspace-jspui-api
"attachment;filename=" + filename);
Utils.bufferedCopy(exportStream, response.getOutputStream());
exportStream.close();
response.getOutputStream().flush();
代码示例来源:origin: org.dspace/dspace-jspui-api
Utils.bufferedCopy(is, response.getOutputStream());
is.close();
response.getOutputStream().flush();
代码示例来源:origin: org.dspace/dspace-jspui-api
Utils.bufferedCopy(is, response.getOutputStream());
is.close();
response.getOutputStream().flush();
代码示例来源:origin: org.dspace/dspace-jspui-api
Utils.bufferedCopy(is, response.getOutputStream());
is.close();
response.getOutputStream().flush();
代码示例来源:origin: DSpace/DSpace
in = bitstreamService.retrieve(context, licBit);
ByteArrayOutputStream out = new ByteArrayOutputStream();
Utils.bufferedCopy(in, out);
license.getField().add(
createValue("bin",
内容来源于网络,如有侵权,请联系作者删除!