org.dspace.core.Utils.bufferedCopy()方法的使用及代码示例

x33g5p2x  于2022-02-01 转载在 其他  
字(1.8k)|赞(0)|评价(0)|浏览(151)

本文整理了Java中org.dspace.core.Utils.bufferedCopy()方法的一些代码示例,展示了Utils.bufferedCopy()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Utils.bufferedCopy()方法的具体详情如下:
包路径:org.dspace.core.Utils
类名称:Utils
方法名:bufferedCopy

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.BufferedInputStreamjava.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",

相关文章

微信公众号

最新文章

更多