if (getImpl() != null) return getImpl().getOutputStream();  throw new IOException("Not connected");
if (isClosed()) throw new SocketException("socket is closed");  if (!isConnected()) throw new IOException("not connected");  return getImpl().getOutputStream();
  public OutputStream getOutputStream () throws IOException  {    if (getImpl() != null)      return getImpl().getOutputStream();    throw new IOException("Not connected");  }