@Override public void flush() throws IOException { FastPipedInputStream s = sink(); synchronized(s.buffer) { // Release all readers. s.buffer.notifyAll(); } }
@Override public void flush() throws IOException { FastPipedInputStream s = sink(); synchronized(s.buffer) { // Release all readers. s.buffer.notifyAll(); } }
@Override public void flush() throws IOException { FastPipedInputStream s = sink(); synchronized(s.buffer) { // Release all readers. s.buffer.notifyAll(); } }
@Override public void flush() throws IOException { FastPipedInputStream s = sink(); synchronized(s.buffer) { // Release all readers. s.buffer.notifyAll(); } }
public void error(Throwable e) throws IOException { if(sink == null) { throw new IOException("Unconnected pipe"); } FastPipedInputStream s = sink(); synchronized(s.buffer) { if (s.closed==null) { s.closed = new FastPipedInputStream.ClosedBy(e); flush(); } } }
/** * @exception IOException The pipe is not connected. */ @Override public void close() throws IOException { if(sink == null) { throw new IOException("Unconnected pipe"); } FastPipedInputStream s = sink(); synchronized(s.buffer) { s.closed = new FastPipedInputStream.ClosedBy(); flush(); } }
/** * @exception IOException The pipe is not connected. */ @Override public void close() throws IOException { if(sink == null) { throw new IOException("Unconnected pipe"); } FastPipedInputStream s = sink(); synchronized(s.buffer) { s.closed = new FastPipedInputStream.ClosedBy(); flush(); } }
/** * @exception IOException The pipe is not connected. */ @Override public void close() throws IOException { if(sink == null) { throw new IOException("Unconnected pipe"); } FastPipedInputStream s = sink(); synchronized(s.buffer) { s.closed = new FastPipedInputStream.ClosedBy(); flush(); } }
FastPipedInputStream s = sink(); // make sure the sink is still trying to read, or else fail the write.
FastPipedInputStream s = sink(); // make sure the sink is still trying to read, or else fail the write.
FastPipedInputStream s = sink(); // make sure the sink is still trying to read, or else fail the write.
FastPipedInputStream s = sink(); // make sure the sink is still trying to read, or else fail the write.