本文整理了Java中org.apache.cxf.helpers.IOUtils.consume()
方法的一些代码示例,展示了IOUtils.consume()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。IOUtils.consume()
方法的具体详情如下:
包路径:org.apache.cxf.helpers.IOUtils
类名称:IOUtils
方法名:consume
[英]Consumes at least the given number of bytes from the input stream
[中]至少消耗输入流中给定数量的字节
代码示例来源:origin: org.apache.cxf/cxf-rt-transports-http
protected void closeInputStream() throws IOException {
//try and consume any content so that the connection might be reusable
InputStream ins = connection.getErrorStream();
if (ins == null) {
ins = connection.getInputStream();
}
if (ins != null) {
IOUtils.consume(ins);
ins.close();
}
}
protected int getResponseCode() throws IOException {
代码示例来源:origin: apache/cxf
protected void closeInputStream() throws IOException {
//try and consume any content so that the connection might be reusable
InputStream ins = connection.getErrorStream();
if (ins == null) {
ins = connection.getInputStream();
}
if (ins != null) {
IOUtils.consume(ins);
ins.close();
}
}
protected int getResponseCode() throws IOException {
代码示例来源:origin: org.apache.cxf/cxf-bundle-jaxrs
protected void closeInputStream() throws IOException {
//try and consume any content so that the connection might be reusable
InputStream ins = connection.getErrorStream();
if (ins == null) {
ins = connection.getInputStream();
}
if (ins != null) {
IOUtils.consume(ins);
ins.close();
}
}
protected int getResponseCode() throws IOException {
代码示例来源:origin: org.apache.cxf/cxf-core
@Override
public void close() throws IOException {
IOUtils.consume(is);
is.close();
if (!isClosed && deserializer != null) {
deserializer.markClosed(this);
}
isClosed = true;
}
代码示例来源:origin: apache/cxf
@Override
public void close() throws IOException {
IOUtils.consume(is);
is.close();
if (!isClosed && deserializer != null) {
deserializer.markClosed(this);
}
isClosed = true;
}
代码示例来源:origin: org.apache.cxf/cxf-api
@Override
public void close() throws IOException {
IOUtils.consume(is);
is.close();
if (!isClosed && deserializer != null) {
deserializer.markClosed(this);
}
isClosed = true;
}
代码示例来源:origin: org.apache.cxf/cxf-bundle-jaxrs
@Override
public void close() throws IOException {
IOUtils.consume(is);
is.close();
if (!isClosed && deserializer != null) {
deserializer.markClosed(this);
}
isClosed = true;
}
代码示例来源:origin: org.apache.cxf/cxf-rt-transports-http
IOUtils.consume(in, 16 * 1024 * 1024);
} catch (Exception ioe) {
代码示例来源:origin: apache/cxf
IOUtils.consume(in, 16 * 1024 * 1024);
} catch (Exception ioe) {
代码示例来源:origin: org.apache.cxf/cxf-bundle-jaxrs
IOUtils.consume(in, 16 * 1024 * 1024);
} catch (IOException ioe) {
内容来源于网络,如有侵权,请联系作者删除!