if (getImpl() != null) getImpl().shutdownOutput();
if (isClosed()) throw new SocketException("socket is closed");
  public void shutdownOutput() throws IOException  {    if (getImpl() != null)      getImpl().shutdownOutput();        outputShutdown = true;  }