/[classpath]/inetlib/source/gnu/inet/gopher/Handler.java
ViewVC logotype

Diff of /inetlib/source/gnu/inet/gopher/Handler.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.3 by dog, Thu Oct 21 15:21:55 2004 UTC revision 1.4 by dog, Thu Nov 25 22:15:05 2004 UTC
# Line 1  Line 1 
1  /*  /*
2   * $Id$   * Handler.java
3   * Copyright (C) 2003 The Free Software Foundation   * Copyright (C) 2003 The Free Software Foundation
4   *   *
5   * This file is part of GNU inetlib, a library.   * This file is part of GNU inetlib, a library.
# Line 47  import java.net.URLStreamHandler; Line 47  import java.net.URLStreamHandler;
47   * A Gopher URL stream handler.   * A Gopher URL stream handler.
48   *   *
49   * @author <a href='mailto:dog@gnu.org'>Chris Burdess</a>   * @author <a href='mailto:dog@gnu.org'>Chris Burdess</a>
  * @version $Revision$ $Date$  
50   */   */
51  public class Handler extends URLStreamHandler  public class Handler
52      extends URLStreamHandler
53  {  {
54    
55    protected int getDefaultPort ()    protected int getDefaultPort ()
56      {    {
57        return GopherConnection.DEFAULT_PORT;      return GopherConnection.DEFAULT_PORT;
58      }    }
59      
60    protected URLConnection openConnection (URL url) throws IOException    protected URLConnection openConnection (URL url)
61      {      throws IOException
62        return new GopherURLConnection (url);    {
63      }      return new GopherURLConnection(url);
64      }
65    
66  }  }
67    

Legend:
Removed from v.1.3  
changed lines
  Added in v.1.4

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26