org.eclipse.jetty.io.Buffer.writeTo()方法的使用及代码示例

x33g5p2x  于2022-01-17 转载在 其他  
字(2.8k)|赞(0)|评价(0)|浏览(120)

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

Buffer.writeTo介绍

[英]Write the buffer's contents to the output stream
[中]将缓冲区的内容写入输出流

代码示例

代码示例来源:origin: org.apache.servicemix/servicemix-http

protected void onResponseContent(Buffer content) throws IOException {
  if (responseContent == null) {
    responseContent = new ByteArrayOutputStream(contentLength);
  }
  content.writeTo(responseContent);
}

代码示例来源:origin: org.eclipse.jetty.aggregate/jetty-all-server

@Override
protected synchronized void onResponseContent(Buffer content) throws IOException
{
  super.onResponseContent(content);
  if (_responseContent == null)
    _responseContent = new ByteArrayOutputStream(_bufferSize);
  content.writeTo(_responseContent);
}

代码示例来源:origin: timurstrekalov/saga

@Override
protected void onResponseContent(final Buffer content) throws IOException {
  logger.debug("content {}", content.length());
  content.writeTo(baos);
}

代码示例来源:origin: org.eclipse.jetty.aggregate/jetty-all-server

@Override
protected void onResponseContent(Buffer content) throws IOException
{
  if (debug != 0)
    _log.debug(debug + " content" + content.length());
  content.writeTo(out);
}

代码示例来源:origin: org.eclipse.jetty.aggregate/jetty-all-server

@Override
protected void onResponseContent(Buffer content) throws IOException
{
  if (debug != 0)
    _log.debug(debug + " content" + content.length());
  content.writeTo(out);
}

代码示例来源:origin: org.eclipse.jetty.aggregate/jetty-server

public int flush(Buffer buffer) throws IOException
{
  if (_oshut)
    return -1;
  if (_out==null)
    return 0;
  int length=buffer.length();
  if (length>0)
    buffer.writeTo(_out);
  if (!buffer.isImmutable())
    buffer.clear();
  return length;
}

代码示例来源:origin: org.eclipse.jetty.aggregate/jetty-all-server

public int flush(Buffer buffer) throws IOException
{
  if (_oshut)
    return -1;
  if (_out==null)
    return 0;
  int length=buffer.length();
  if (length>0)
    buffer.writeTo(_out);
  if (!buffer.isImmutable())
    buffer.clear();
  return length;
}

代码示例来源:origin: org.eclipse.jetty.aggregate/jetty-webapp

public int flush(Buffer buffer) throws IOException
{
  if (_oshut)
    return -1;
  if (_out==null)
    return 0;
  int length=buffer.length();
  if (length>0)
    buffer.writeTo(_out);
  if (!buffer.isImmutable())
    buffer.clear();
  return length;
}

代码示例来源:origin: org.eclipse.jetty.aggregate/jetty-plus

public int flush(Buffer buffer) throws IOException
{
  if (_oshut)
    return -1;
  if (_out==null)
    return 0;
  int length=buffer.length();
  if (length>0)
    buffer.writeTo(_out);
  if (!buffer.isImmutable())
    buffer.clear();
  return length;
}

代码示例来源:origin: org.eclipse.jetty.aggregate/jetty-all-server

buffer.writeTo(out);
else
  resource.writeTo(out,0,content_length);

代码示例来源:origin: org.eclipse.jetty.aggregate/jetty-plus

buffer.writeTo(out);
else
  resource.writeTo(out,0,content_length);

代码示例来源:origin: org.eclipse.jetty.aggregate/jetty-webapp

buffer.writeTo(out);
else
  resource.writeTo(out,0,content_length);

相关文章