@Override public void closeWrite() throws IOException {
  if (_isWriteClosed) {
    return;
  }
  _isWriteClosed=true;
  SocketStream stream=_streamImpl;
  if (stream != null) {
    stream.closeWrite();
  }
 else   if (_s != null) {
    try {
      _s.shutdownOutput();
    }
 catch (    UnsupportedOperationException e) {
      log.log(Level.FINEST,e.toString(),e);
    }
catch (    Exception e) {
      log.finer(e.toString());
      log.log(Level.FINEST,e.toString(),e);
    }
  }
}

@ Override public void closeWrite ( ) throws IOException { if ( _isWriteClosed ) { return ; } _isWriteClosed = true ; SocketStream stream = _streamImpl ; if ( stream != null ) { stream . closeWrite ( ) ; } else if ( _s != null ) { try { _s . shutdownOutput ( ) ; } catch ( UnsupportedOperationException e ) { log . log ( Level . FINEST , e . toString ( ) , e ) ; } catch ( Exception e ) { log . finer ( e . toString ( ) ) ; log . log ( Level . FINEST , e . toString ( ) , e ) ; } } }
closes the write half of the stream .
