@Override public void close() throws IOException {this.in=IO.getClosedStream();} };
@Override public void close() throws IOException {this.in=IO.getClosedStream();} };
@Override public void close() throws IOException {this.in=IO.getClosedStream();} };
@Override public void close() throws IOException {this.in=IO.getClosedStream();} };
@Override public void close() throws IOException {this.in=IO.getClosedStream();} };
@Override public void close() throws IOException {this.in=IO.getClosedStream();} };
@Override public void close() throws IOException {this.in=IO.getClosedStream();} };
@Override public void close() throws IOException {this.in=IO.getClosedStream();} };
@Override public void close() throws IOException {this.in=IO.getClosedStream();} };
/** * 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(); }
public void testEOFStreams() throws IOException { final InputStream closed = IO.getClosedStream(); assertTrue(closed.read() == -1); }
public void testEOFStreams() throws IOException { final InputStream closed = IO.getClosedStream(); assertTrue(closed.read() == -1); }