question: public void close ( ) { Thread current = thread ; thread = null ; if ( current != null ) { current . interrupt ( ) ; try { current . join ( ) ; } catch ( InterruptedException e ) { } } try { buffer . close ( ) ; } catch ( IOException e ) { } }
target:  Stops the monitor and closes the buffer. This should only be called if the contents of the buffer are no longer required.