String dir = url.getPath(); String filename = url.getFile(); if (!connection.changeWorkingDirectory(dir)) { throw new FileNotFoundException(dir); } if (filename != null) { return this.new ClosingOutputStream(connection.store(filename)); } else { throw new FileNotFoundException(filename); }
String path = url.getPath(); return this.new ClosingOutputStream(connection.store(path));
  public OutputStream getOutputStream()    throws IOException  {    if (!connected)      {        connect();      }    String dir = url.getPath();    String filename = url.getFile();    if (!connection.changeWorkingDirectory(dir))      {        throw new FileNotFoundException(dir);      }    if (filename != null)      {        return this.new ClosingOutputStream(connection.store(filename));      }    else      {        throw new FileNotFoundException(filename);      }  }