@Override public synchronized void close() throws IOException {
  buffer=null;
  isClosed=true;
  notifyAll();
}

@ Override public synchronized void close ( ) throws IOException { buffer = null ; isClosed = true ; notifyAll ( ) ; }
closes this reader . this implementation releases the buffer used for the pipe and notifies all threads waiting to read or write .
