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