org.eclipse.jetty.util.IO.getClosedStream()方法的使用及代码示例

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

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

IO.getClosedStream介绍

暂无

代码示例

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

@Override
  public void close() throws IOException {this.in=IO.getClosedStream();}
};

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

@Override
  public void close() throws IOException {this.in=IO.getClosedStream();}
};

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

@Override
  public void close() throws IOException {this.in=IO.getClosedStream();}
};

代码示例来源:origin: Nextdoor/bender

@Override
  public void close() throws IOException {this.in=IO.getClosedStream();}
};

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

@Override
  public void close() throws IOException {this.in=IO.getClosedStream();}
};

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

@Override
  public void close() throws IOException {this.in=IO.getClosedStream();}
};

代码示例来源:origin: com.ovea.tajin.server/tajin-server-jetty9

@Override
  public void close() throws IOException {this.in=IO.getClosedStream();}
};

代码示例来源:origin: com.ovea.tajin.servers/tajin-server-jetty9

@Override
  public void close() throws IOException {this.in=IO.getClosedStream();}
};

代码示例来源:origin: jenkinsci/winstone

@Override
  public void close() throws IOException {this.in=IO.getClosedStream();}
};

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

/**
 * Returns an {@link InputStream} providing the response content bytes.
 * <p>
 * The method may be invoked only once; subsequent invocations will return a closed {@link InputStream}.
 *
 * @return an input stream providing the response content
 */
public InputStream getInputStream()
{
  InputStream result = new Input();
  if (stream.compareAndSet(null, result))
    return result;
  return IO.getClosedStream();
}

代码示例来源:origin: blazegraph/database

public void testEOFStreams() throws IOException {
  final InputStream closed = IO.getClosedStream();
  
  assertTrue(closed.read() == -1);
}

代码示例来源:origin: blazegraph/database

public void testEOFStreams() throws IOException {
  final InputStream closed = IO.getClosedStream();
  
  assertTrue(closed.read() == -1);
}

相关文章