code: @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);
        }
      }
    }
docs: Closes the write half of the stream.