diff options
author | mkoch <mkoch@138bc75d-0d04-0410-961f-82ee72b054a4> | 2003-07-20 07:30:59 +0000 |
---|---|---|
committer | mkoch <mkoch@138bc75d-0d04-0410-961f-82ee72b054a4> | 2003-07-20 07:30:59 +0000 |
commit | 8285f62c08de9b054a25405da6c759be747fadcb (patch) | |
tree | ee61222b84725615c190d2978934cb0ac8637118 /libjava/java/net/URL.java | |
parent | 23a7428590d6c587d9ca75507f36693f117f061b (diff) | |
download | ppe42-gcc-8285f62c08de9b054a25405da6c759be747fadcb.tar.gz ppe42-gcc-8285f62c08de9b054a25405da6c759be747fadcb.zip |
2003-07-20 Michael Koch <konqueror@gmx.de>
* java/net/URL.java
(URL): Fixed documentation to name an argument correcty, Reformatted
one method declaration.
(getURLStreamHandler): Added documentation from classpath.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@69606 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libjava/java/net/URL.java')
-rw-r--r-- | libjava/java/net/URL.java | 16 |
1 files changed, 12 insertions, 4 deletions
diff --git a/libjava/java/net/URL.java b/libjava/java/net/URL.java index 12c86914e30..fa6f660ffb7 100644 --- a/libjava/java/net/URL.java +++ b/libjava/java/net/URL.java @@ -213,7 +213,7 @@ public final class URL implements Serializable * @param port The port number to use, or -1 to use the protocol's default * port * @param file The "file" portion of the URL. - * @param handler The protocol handler to use with this URL. + * @param ph The protocol handler to use with this URL. * * @exception MalformedURLException If no protocol handler can be loaded * for the specified protocol. @@ -222,8 +222,8 @@ public final class URL implements Serializable * * @since 1.2 */ - public URL(String protocol, String host, int port, String file, - URLStreamHandler ph) + public URL (String protocol, String host, int port, String file, + URLStreamHandler ph) throws MalformedURLException { if (protocol == null) @@ -320,7 +320,7 @@ public final class URL implements Serializable * * @param context The context in which to parse the specification * @param spec The string to parse as an URL - * @param handler The stream handler for the URL + * @param ph The stream handler for the URL * * @exception MalformedURLException If a protocol handler cannot be found * or the URL cannot be parsed @@ -718,6 +718,14 @@ public final class URL implements Serializable return ph.toExternalForm(this); } + /** + * This internal method is used in two different constructors to load + * a protocol handler for this URL. + * + * @param protocol The protocol to load a handler for + * + * @return A URLStreamHandler for this protocol, or null when not found. + */ private static synchronized URLStreamHandler getURLStreamHandler (String protocol) { |