org.apache.cxf.helpers.IOUtils.consume()方法的使用及代码示例

x33g5p2x  于2022-01-21 转载在 其他  
字(2.4k)|赞(0)|评价(0)|浏览(138)

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

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) {

相关文章