8284893: Fix typos in java.base

Reviewed-by: iris, wetmore, lancea, mullan, naoto
This commit is contained in:
Magnus Ihse Bursie 2022-04-19 20:07:57 +00:00
parent 4594696f54
commit fb469fb894
162 changed files with 369 additions and 369 deletions

View file

@ -1,5 +1,5 @@
/*
* Copyright (c) 2009, 2021, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2009, 2022, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@ -600,7 +600,7 @@ public class FtpClient extends sun.net.ftp.FtpClient {
// the format will be :
// 229 Entering Extended PASSIVE Mode (|||58210|)
//
// So we'll use the regular expresions package to parse the output.
// So we'll use the regular expressions package to parse the output.
if (epsvPat == null) {
epsvPat = Pattern.compile("^229 .* \\(\\|\\|\\|(\\d+)\\|\\)");
@ -1300,13 +1300,13 @@ public class FtpClient extends sun.net.ftp.FtpClient {
* Retrieves a file from the ftp server and writes it to the specified
* <code>OutputStream</code>.
* If the restart offset was set, then a <code>REST</code> command will be
* sent before the RETR in order to restart the tranfer from the specified
* sent before the RETR in order to restart the transfer from the specified
* offset.
* The <code>OutputStream</code> is not closed by this method at the end
* of the transfer.
*
* @param name a {@code String} containing the name of the file to
* retreive from the server.
* retrieve from the server.
* @param local the <code>OutputStream</code> the file should be written to.
* @throws IOException if the transfer fails.
*/
@ -1648,7 +1648,7 @@ public class FtpClient extends sun.net.ftp.FtpClient {
* <p>This method will actually block reading on the command channel for a
* notification from the server that the command is finished. Such a
* notification often carries extra information concerning the completion
* of the pending action (e.g. number of bytes transfered).</p>
* of the pending action (e.g. number of bytes transferred).</p>
* <p>Note that this will return true immediately if no command or action
* is pending</p>
* <p>It should be also noted that most methods issuing commands to the ftp
@ -1926,7 +1926,7 @@ public class FtpClient extends sun.net.ftp.FtpClient {
* is finished iterating through the files.
*
* @param path the pathname of the directory to list or <code>null</code>
* for the current working directoty.
* for the current working directory.
* @return a <code>Iterator</code> of files or <code>null</code> if the
* command failed.
* @throws IOException if an error occurred during the transmission
@ -1976,7 +1976,7 @@ public class FtpClient extends sun.net.ftp.FtpClient {
* Attempts to use Kerberos GSSAPI as an authentication mechanism with the
* ftp server. This will issue an <code>AUTH GSSAPI</code> command, and if
* it is accepted by the server, will followup with <code>ADAT</code>
* command to exchange the various tokens until authentification is
* command to exchange the various tokens until authentication is
* successful. This conforms to Appendix I of RFC 2228.
*
* @return <code>true</code> if authentication was successful.
@ -2058,7 +2058,7 @@ public class FtpClient extends sun.net.ftp.FtpClient {
/**
* Returns, when available, the size of the latest started transfer.
* This is retreived by parsing the response string received as an initial
* This is retrieved by parsing the response string received as an initial
* response to a RETR or similar request.
*
* @return the size of the latest transfer or -1 if either there was no
@ -2069,12 +2069,12 @@ public class FtpClient extends sun.net.ftp.FtpClient {
}
/**
* Returns, when available, the remote name of the last transfered file.
* Returns, when available, the remote name of the last transferred file.
* This is mainly useful for "put" operation when the unique flag was
* set since it allows to recover the unique file name created on the
* server which may be different from the one submitted with the command.
*
* @return the name the latest transfered file remote name, or
* @return the name the latest transferred file remote name, or
* <code>null</code> if that information is unavailable.
*/
public String getLastFileName() {
@ -2136,7 +2136,7 @@ public class FtpClient extends sun.net.ftp.FtpClient {
/**
* Sends a <code>CCC</code> command followed by a <code>PROT C</code>
* command to the server terminating an encrypted session and reverting
* back to a non crypted transmission.
* back to a non encrypted transmission.
*
* @return <code>true</code> if the operation was successful.
* @throws IOException if an error occurred during transmission.