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
This commit is contained in:
Michael Koch 2003-11-26 10:17:51 +00:00 committed by Michael Koch
parent e08932b2a7
commit 6cf0ea4b86
3 changed files with 41 additions and 1 deletions

View 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

View 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);