7677787980818283848586
Object block; while ((block = mInput.read()) != ControlBlock.NO_MORE_DATA) { pipe.write(block); } pipe.closeForWriting(); writeThread.join(); } catch (PipeClosedException e) { if (mOutputError instanceof ActivityUserException)
102103104105106107108109110111112
pipe.closeForWritingDueToError(); throw new ActivityProcessingException(e); } catch (PipeTerminatedException e) { pipe.closeForWriting(); throw new ActivityTerminatedException(); } catch (InterruptedException e) { Thread.currentThread().interrupt();