@Override public synchronized void flush() throws IOException {
  checkNotClosed();
  flushInternal();
  out.flush();
}

@ Override public synchronized void flush ( ) throws IOException { checkNotClosed ( ) ; flushInternal ( ) ; out . flush ( ) ; }
flushes this stream to ensure all pending data is written out to the target stream . in addition , the target stream is flushed .
