Lines Matching refs:to

8  * particular file as subject to the "Classpath" exception as provided
18 * 2 along with this work; if not, write to the Free Software Foundation,
65 /* Name of encoding to use for output */
154 * Test the named character encoding to verify that it converts ASCII
155 * characters correctly. We have to use an ASCII based encoding, or else
162 * mechanism, but there is no way to specify in the escaped string what
163 * the original character set is. It is not correct to assume that
165 * until the specifications are updated to deal with this issue more
166 * comprehensively, and more importantly, HTTP servers are known to
168 * where it is possible to send non-ASCII characters in their original
376 * If it's a start of data transfer response, let's try to extract
473 /** Sends command <i>cmd</i> to the server. */
514 * Sends a command to the FTP server and returns the error code
537 * Send a command to the FTP server and check for success.
566 * - First we want to try the new (and IPv6 compatible) EPSV command
567 * But since we want to be nice with NAT software, we'll issue the
570 * - If EPSV fails, then we fall back to the older, yet ok, PASV
572 * method will have to try the EPRT or PORT command
583 // So we'll use the regular expresions package to parse the output.
599 // This means we used an Unresolved address to connect in
610 // Let's parse the response String to get the IP & port to connect
611 // to. The String should be in the following format :
620 // the parenthesis are optionals and we have to use 3 groups.
661 // Bind the socket to the same address as the control channel. This
698 * Opens a data connection with the server according to the set mode
701 * @param cmd the <code>String</code> containing the command to execute
730 // Bind the ServerSocket to the same address as the control channel
742 // (e.g. RETR) will fail, so we have to check BOTH results (the
743 // EPRT cmd then the actual command) to decide wether we should
748 // The EPRT command failed, let's fall back to good old PORT
807 * Creates an instance of FtpClient. The client is not connected to any
815 * Creates an instance of FtpClient. The client is not connected to any
824 * Set the transfer mode to <I>passive</I>. In that mode, data connections
825 * are established by having the client connect to the server.
848 * Sets the timeout value to use when connecting to the server,
850 * @param timeout the timeout value, in milliseconds, to use for the connect
871 * Sets the timeout value to use when reading from the server,
873 * @param timeout the timeout value, in milliseconds, to use for the read
909 * Connects to the specified destination.
911 * @param dest the <code>InetSocketAddress</code> to connect to.
986 * Tests whether this client is connected or not to a server.
1003 * Connects the FtpClient to the specified destination.
1036 * Attempts to log on the server with the specified user name and password.
1072 * Attempts to log on the server with the specified user name, password and
1119 * session and the connection to the server will be closed.
1131 * Checks whether the client is logged in to the server or not.
1140 * Changes to a specific directory on a remote FTP server
1142 * @param remoteDirectory path of the directory to CD to.
1156 * Changes to the parent directory, sending the CDUP command to the server.
1189 * Sets the restart offset to the specified value. That value will be
1190 * sent through a <code>REST</code> command to server before a file
1192 * specified point. After a transfer the restart offset is set back to
1195 * @param offset the offset in the remote file at which to start the next
1196 * transfer. This must be a value greater than or equal to zero.
1208 * Retrieves a file from the ftp server and writes it to the specified
1211 * sent before the RETR in order to restart the tranfer from the specified
1216 * @param name a <code>String<code> containing the name of the file to
1218 * @param local the <code>OutputStream</code> the file should be written to.
1260 * {@link #completePending()} <b>has</b> to be called once the application
1293 * Transfers a file from the client to the server (aka a <I>put</I>)
1297 * {@link #completePending()} <b>has</b> to be called once the application
1298 * is finished writing to the stream.
1303 * If <code>unique</code> is set to <code>true</code>, the resultant file
1304 * is to be created under a name unique to that directory, meaning
1310 * @param name the name of the remote file to write.
1330 * Transfers a file from the client to the server (aka a <I>put</I>)
1338 * @param name the name of the remote file to write.
1339 * @param local the <code>InputStream</code> that points to the data to
1366 * Sends the APPE command to the server in order to transfer a data stream
1367 * passed in argument and append it to the content of the specified remote
1371 * to append to.
1372 * @param local The <code>InputStream</code> providing access to the data
1373 * to be appended.
1396 * @param to the new name for the file
1399 public sun.net.ftp.FtpClient rename(String from, String to) throws sun.net.ftp.FtpProtocolException, IOException {
1401 issueCommandCheck("RNTO " + to);
1409 * to delete.
1422 * to create.
1435 * to remove.
1457 * Sends the STAT command to the server.
1458 * This can be used while a data connection is open to get a status
1466 * the STAT command should apply to.
1483 * Connected to localhost (::1)
1495 * So we need to remove the 1st and last line
1506 * Sends the FEAT command to the server and returns the list of supported
1537 // Note that we start at index 1 to skip the 1st line (211-...)
1548 * sends the ABOR command to the server.
1549 * It tells the server to stop the previous command or transfer.
1567 * reply to indicate that the service request terminated
1579 * method can be called to wait until completion. This is typically the case
1581 * So this method should be called before accessing information related to
1589 * <p>It should be also noted that most methods issuing commands to the ftp
1650 * proper command (e.g. TYPE A) to the server.
1652 * @param type the <code>FtpTransferType</code> to use.
1674 * Issues a LIST command to the server to get the current directory
1676 * {@link #completePending()} <b>has</b> to be called once the application
1677 * is finished writing to the stream.
1679 * @param path the pathname of the directory to list, or <code>null</code>
1696 * Issues a NLST path command to server to get the specified directory
1701 * {@link #completePending()} <b>has</b> to be called once the application
1702 * is finished writing to the stream.
1705 * directory to list or <code>null</code> for the current working
1720 * Issues the SIZE [path] command to the server to get the size of a
1758 * Issues the MDTM [path] command to the server to get the modification
1788 * Sets the parser used to handle the directory output to the specified
1789 * one. By default the parser is set to one that can handle most FTP
1791 * and application to provide its own parser due to some uncommon
1794 * @param p The <code>FtpDirParser</code> to use.
1861 * Issues a MLSD command to the server to get the specified directory
1862 * listing and applies the current parser to create an Iterator of
1868 * {@link #completePending()} <b>has</b> to be called once the application
1871 * @param path the pathname of the directory to list or <code>null</code>
1886 // back to LIST
1913 // Need to get rid of the leading '315 ADAT='
1924 * Attempts to use Kerberos GSSAPI as an authentication mechanism with the
1927 * command to exchange the various tokens until authentification is
1928 * successful. This conforms to Appendix I of RFC 2228.
2010 * response to a RETR or similar request.
2022 * set since it allows to recover the unique file name created on the
2033 * Attempts to switch to a secure, encrypted connection. This is done by
2086 * command to the server terminating an encrypted session and reverting
2087 * back to a non crypted transmission.
2116 * Sends the "Allocate" (ALLO) command to the server telling it to
2119 * @param size The number of bytes to allocate.
2129 * Sends the "Structure Mount" (SMNT) command to the server. This let the
2134 * structure to mount.
2144 * Sends a SYST (System) command to the server and returns the String
2163 * Sends the HELP command to the server, with an optional command, like
2183 * 214 Direct comments to ftp-bugs@jsn.
2190 * 214 Direct comments to ftp-bugs@jsn.
2207 * Sends the SITE command to the server. This is used by the server
2208 * to provide services specific to his system that are essential
2209 * to file transfer.
2211 * @param cmd the command to be sent.