nl.tudelft.simulation.language.io
Class URLResource

java.lang.Object
  extended by nl.tudelft.simulation.language.io.URLResource

public final class URLResource
extends java.lang.Object

(c) copyright 2002-2005 Delft University of Technology , the Netherlands.

See for project information www.simulation.tudelft.nl/language
License of use: Lesser General Public License (LGPL) , no warranty

Since:
1.5
Version:
$Revision: 1.10 $ $Date: 2005/08/04 12:08:57 $
Author:
Peter Jacobs

Method Summary
static java.net.URL getResource(java.lang.String name)
          resolves a resource for name.
static java.io.InputStream getResourceAsStream(java.lang.String name)
          returns the reseource as stream.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getResource

public static java.net.URL getResource(java.lang.String name)
resolves a resource for name.

Parameters:
name - the name to search for
Returns:
the resolved URL

getResourceAsStream

public static java.io.InputStream getResourceAsStream(java.lang.String name)
returns the reseource as stream.

Parameters:
name - the name of the resource
Returns:
the inputStream


Copyright © 2002-2005 Delft University of Technology, the Netherlands. All Rights Reserved.