2003-11-26 Michael Koch <konqueror@gmx.de>
authorMichael Koch <konqueror@gmx.de>
Wed, 26 Nov 2003 10:17:51 +0000 (10:17 +0000)
committerMichael Koch <mkoch@gcc.gnu.org>
Wed, 26 Nov 2003 10:17:51 +0000 (10:17 +0000)
* gnu/java/net/protocol/file/Handler.java
(Handler): New explicit constructor.
(openConnection): Added documentation.
* gnu/java/net/protocol/jar/Handler.java
(Handler): New explicit constructor.
(openConnection): Added documentation.

From-SVN: r73945

libjava/ChangeLog
libjava/gnu/java/net/protocol/file/Handler.java
libjava/gnu/java/net/protocol/jar/Handler.java

index 0100cb62bb96881c8195d87500bb9dbe681e35d1..55e465c43603553dd8e431ae66eb9b33f97208dd 100644 (file)
@@ -1,3 +1,12 @@
+2003-11-26  Michael Koch  <konqueror@gmx.de>
+
+       * gnu/java/net/protocol/file/Handler.java
+       (Handler): New explicit constructor.
+       (openConnection): Added documentation.
+       * gnu/java/net/protocol/jar/Handler.java
+       (Handler): New explicit constructor.
+       (openConnection): Added documentation.
+
 2003-11-26  Michael Koch  <konqueror@gmx.de>
 
        * java/net/DatagramPacket.java
index 7470d17f20ad816d3f4e6d693af1e291b8314f49..4f5fba3a5b42217aef3fa3fe0e3ef24e8c40cda7 100644 (file)
@@ -53,6 +53,22 @@ import java.net.URLStreamHandler;
  */
 public class Handler extends URLStreamHandler
 {
+  /**
+   * A do nothing constructor
+   */
+  public Handler()
+  {
+  }
+
+  /**
+   * This method returs a new FileURLConnection for the specified URL
+   *
+   * @param url The URL to return a connection for
+   *
+   * @return The URLConnection
+   *
+   * @exception IOException If an error occurs
+   */
   protected URLConnection openConnection(URL url) throws IOException
   {
     // If a hostname is set, then we need to switch protocols to ftp
index 7bde053e20e03049481377c20fe036317162113a..eaad0f48ba5b1ace1de1aeaf0ee6d735669c2509 100644 (file)
@@ -45,10 +45,25 @@ import java.net.URLStreamHandler;
 
 /**
  * @author Kresten Krab Thorup <krab@gnu.org>
- * @date August 13, 1999.
  */
 public class Handler extends URLStreamHandler
 {
+  /**
+   * A do nothing constructor
+   */
+  public Handler()
+  {
+  }
+
+  /**
+   * This method returs a new JarURLConnection for the specified URL
+   *
+   * @param url The URL to return a connection for
+   *
+   * @return The URLConnection
+   *
+   * @exception IOException If an error occurs
+   */
   protected URLConnection openConnection(URL url) throws IOException
   {
     return new Connection(url);