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

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