diff options
Diffstat (limited to 'libjava/gnu/java/net')
-rw-r--r-- | libjava/gnu/java/net/protocol/file/Handler.java | 16 | ||||
-rw-r--r-- | libjava/gnu/java/net/protocol/jar/Handler.java | 17 |
2 files changed, 32 insertions, 1 deletions
diff --git a/libjava/gnu/java/net/protocol/file/Handler.java b/libjava/gnu/java/net/protocol/file/Handler.java index 7470d17..4f5fba3 100644 --- a/libjava/gnu/java/net/protocol/file/Handler.java +++ b/libjava/gnu/java/net/protocol/file/Handler.java @@ -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 diff --git a/libjava/gnu/java/net/protocol/jar/Handler.java b/libjava/gnu/java/net/protocol/jar/Handler.java index 7bde053..eaad0f4 100644 --- a/libjava/gnu/java/net/protocol/jar/Handler.java +++ b/libjava/gnu/java/net/protocol/jar/Handler.java @@ -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); |