org.deegree.commons.utils.net
Class DURL

java.lang.Object
  extended by 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 $

Constructor Summary
DURL(String url)
           
 
Method Summary
 URL getURL()
           
 InputStream openStream()
           
static void registerHandler(String protocol, Class<? extends URLStreamHandler> handler)
           
 boolean valid()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DURL

public DURL(String url)
Parameters:
url -
Method Detail

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.