Commit 6cf0ea4b by Michael Koch Committed by Michael Koch

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
parent e08932b2
2003-11-26 Michael Koch <konqueror@gmx.de> 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 * java/net/DatagramPacket.java
(DatagramPacket): Fixed documentation to become legal HTML. (DatagramPacket): Fixed documentation to become legal HTML.
......
...@@ -53,6 +53,22 @@ import java.net.URLStreamHandler; ...@@ -53,6 +53,22 @@ import java.net.URLStreamHandler;
*/ */
public class Handler extends 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 protected URLConnection openConnection(URL url) throws IOException
{ {
// If a hostname is set, then we need to switch protocols to ftp // If a hostname is set, then we need to switch protocols to ftp
......
...@@ -45,10 +45,25 @@ import java.net.URLStreamHandler; ...@@ -45,10 +45,25 @@ import java.net.URLStreamHandler;
/** /**
* @author Kresten Krab Thorup <krab@gnu.org> * @author Kresten Krab Thorup <krab@gnu.org>
* @date August 13, 1999.
*/ */
public class Handler extends URLStreamHandler 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 protected URLConnection openConnection(URL url) throws IOException
{ {
return new Connection(url); return new Connection(url);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment