stop the pumper as soon as possible . note that it may continue to block on the input stream but it will really stop the thread as soon as it gets eof or any byte , and it will be marked as finished . concode_field_sep boolean nonBlocking concode_elem_sep Throwable exception concode_elem_sep boolean autoflush concode_elem_sep boolean closeWhenExhausted concode_elem_sep InputStream in concode_elem_sep int bufferSize concode_elem_sep boolean finish concode_elem_sep boolean finished concode_elem_sep boolean started concode_elem_sep Thread thread concode_elem_sep OutputStream out concode_field_sep InputStream getIn concode_elem_sep OutputStream getOut concode_elem_sep void setBufferSize concode_elem_sep Throwable getException concode_elem_sep void setAutoflush concode_elem_sep int getBufferSize concode_elem_sep void run concode_elem_sep boolean isFinished concode_elem_sep void waitFor concode_elem_sep InputStream getInputStream concode_elem_sep void setNonBlocking
void function ( ) { finish = true ; if ( nonBlocking && thread != null && ! finished ) { thread . interrupt ( ) ; } notifyAll ( ) ; }