949596979899100101102103104
{ throw new PipeIOException(); } else if (mRaiseTerminatedException) { throw new PipeTerminatedException("MockPipe"); } if (mData.size() == 0) { return ControlBlock.NO_MORE_DATA;
116117118119120121122123124125126
186187188189190191192
* @throws PipeTerminatedException * if the thread has been interrupted. */ private void checkThreadInterrupted() throws PipeTerminatedException { if (Thread.interrupted()) throw new PipeTerminatedException(""); }
204205206207208209210211212213
{ wait(); } catch (InterruptedException e) { throw new PipeTerminatedException("pipe"); } } }