--- old/src/java.base/share/classes/sun/net/www/protocol/ftp/FtpURLConnection.java 2015-06-05 21:04:20.183466086 +0400 +++ new/src/java.base/share/classes/sun/net/www/protocol/ftp/FtpURLConnection.java 2015-06-05 21:04:20.023466086 +0400 @@ -68,13 +68,14 @@ *
- *
- * UrlConnection con = url.openConnection();
- * InputStream is = con.getInputStream();
- * ...
- * is.close();URL url = new URL("ftp://ftp.sun.com/pub/test.txt");
+ * in a abstract layer. Here is an example of how to use the class:
+ *
{@code + * URL url = new URL("ftp://ftp.sun.com/pub/test.txt"); + * UrlConnection con = url.openConnection(); + * InputStream is = con.getInputStream(); + * ... + * is.close(); + * }* * @see sun.net.ftp.FtpClient */ @@ -158,7 +159,7 @@ /** * Creates an FtpURLConnection from a URL. * - * @param url The
URL
to retrieve or store.
+ * @param url The {@code URL} to retrieve or store.
*/
public FtpURLConnection(URL url) {
this(url, null);
@@ -382,7 +383,7 @@
* Get the InputStream to retreive the remote file. It will issue the
* "get" (or "dir") command to the ftp server.
*
- * @return the InputStream
to the connection.
+ * @return the {@code InputStream} to the connection.
*
* @throws IOException if already opened for output
* @throws FtpProtocolException if errors occur during the transfert.
@@ -495,7 +496,7 @@
* Get the OutputStream to store the remote file. It will issue the
* "put" command to the ftp server.
*
- * @return the OutputStream
to the connection.
+ * @return the {@code OutputStream} to the connection.
*
* @throws IOException if already opened for input or the URL
* points to a directory
@@ -548,9 +549,9 @@
}
/**
- * Gets the Permission
associated with the host & port.
+ * Gets the {@code Permission} associated with the host and port.
*
- * @return The Permission
object.
+ * @return The {@code Permission} object.
*/
@Override
public Permission getPermission() {
@@ -568,7 +569,7 @@
* exists, overwrite its value with the new value.
*
* @param key the keyword by which the request is known
- * (e.g., "accept
").
+ * (e.g., "{@code accept}").
* @param value the value associated with it.
* @throws IllegalStateException if already connected
* @see #getRequestProperty(java.lang.String)