jjdh API

jjdh.java.resource.provider.url
Class StreamHandler

java.lang.Object
  extended by java.net.URLStreamHandler
      extended by jjdh.java.resource.provider.url.StreamHandler

public class StreamHandler
extends URLStreamHandler


Field Summary
protected static StreamHandler handler
           
static String PROTOCOL_DOTS
           
static String PROTOCOL_LONG
           
static String PROTOCOL_NAME
           
 
Constructor Summary
private StreamHandler()
           
 
Method Summary
static StreamHandler getInstance()
           
 URLConnection openConnection(URL url)
           
protected  void parseURL(URL url, String spec, int start, int limit)
           
protected static void printURL(URL url)
           
static String toRegex(String s)
           
static String toRegex(URL url)
           
static URL toURL(ResourceReference reference)
           
static URL toURL(String regex)
           
 
Methods inherited from class java.net.URLStreamHandler
equals, getDefaultPort, getHostAddress, hashCode, hostsEqual, openConnection, sameFile, setURL, setURL, toExternalForm
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PROTOCOL_NAME

public static final String PROTOCOL_NAME
See Also:
Constant Field Values

PROTOCOL_DOTS

public static final String PROTOCOL_DOTS
See Also:
Constant Field Values

PROTOCOL_LONG

public static final String PROTOCOL_LONG
See Also:
Constant Field Values

handler

protected static StreamHandler handler
Constructor Detail

StreamHandler

private StreamHandler()
Method Detail

getInstance

public static StreamHandler getInstance()

openConnection

public URLConnection openConnection(URL url)
                             throws IOException
Specified by:
openConnection in class URLStreamHandler
Throws:
IOException

parseURL

protected void parseURL(URL url,
                        String spec,
                        int start,
                        int limit)
Overrides:
parseURL in class URLStreamHandler

toRegex

public static String toRegex(URL url)

toRegex

public static String toRegex(String s)

toURL

public static URL toURL(String regex)

toURL

public static URL toURL(ResourceReference reference)

printURL

protected static void printURL(URL url)

jjdh API

Copyright © 2006 Jonas Jacobi and Dennis Heidsiek. All Rights Reserved.