aboutsummaryrefslogtreecommitdiff
path: root/libjava/gnu
diff options
context:
space:
mode:
authorMichael Koch <konqueror@gmx.de>2003-11-26 10:17:51 +0000
committerMichael Koch <mkoch@gcc.gnu.org>2003-11-26 10:17:51 +0000
commit6cf0ea4b860dd4741512c51a3e64f428aa7dfe17 (patch)
treeaf4eb808d1a11b795de852f577bb53a3fa1d976b /libjava/gnu
parente08932b2a757d7686a449c28012687515d978d31 (diff)
downloadgcc-6cf0ea4b860dd4741512c51a3e64f428aa7dfe17.zip
gcc-6cf0ea4b860dd4741512c51a3e64f428aa7dfe17.tar.gz
gcc-6cf0ea4b860dd4741512c51a3e64f428aa7dfe17.tar.bz2
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. From-SVN: r73945
Diffstat (limited to 'libjava/gnu')
-rw-r--r--libjava/gnu/java/net/protocol/file/Handler.java16
-rw-r--r--libjava/gnu/java/net/protocol/jar/Handler.java17
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);