code: private void issueGETPUT(String command,
                               boolean passive,
                               HostPort port,
                               int mode,
                               String path)
          throws IOException
      {
          Command cmd =
              new Command(command,
                          (passive
                           ? "pasv"
                           : ("port=" + port.toFtpCmdArgument())
                           ) + ";" +
                          "path=" + path + ";" +
                          (mode > 0
                           ? "mode=" + getModeStr(mode) + ";"
                           : ""));
          controlChannel.write(cmd);
      }
docs: Writes a GFD.47 compliant GET or PUT command to the control
  channel.
  
  @param command Either "GET" or "PUT", depending on the command to issue
  @param passive True if the "pasv" parameter should be used
  @param port If passive is false, this is the port for
  the "port" parameter
  @param mode The value for the "mode" parameter, or 0 if the
  parameter should not be specified
  @param path The value for the "path" parameter