org.deegree.commons.utils.net
Class DURL
java.lang.Object
org.deegree.commons.utils.net.DURL
public class DURL
- extends Object
[D]eegree[URL]
- Version:
- $Revision: 29526 $, $Date: 2011-02-03 14:47:23 +0100 (Thu, 03 Feb 2011) $
- Author:
- Andreas Schmitz, last edited by: $Author: aschmitz $
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DURL
public DURL(String url)
- Parameters:
url
-
registerHandler
public static void registerHandler(String protocol,
Class<? extends URLStreamHandler> handler)
- Parameters:
protocol
- handler
-
valid
public boolean valid()
- Returns:
- true, if the underlying URL object could be instantiated
getURL
public URL getURL()
- Returns:
- the underlying URL
openStream
public InputStream openStream()
throws IOException
- Returns:
- an input stream from the URL
- Throws:
IOException
Copyright © 2011. All Rights Reserved.