nl.tudelft.simulation.language.io
Class URLResource

java.lang.Object
  extended bynl.tudelft.simulation.language.io.URLResource

public final class URLResource
extends java.lang.Object

(c) copyright 2003 Delft University of Technology , the Netherlands.
See for project information www.simulation.tudelft.nl
License of use: General Public License (GPL) , no warranty

Since:
1.4
Version:
1.2 Jun 17, 2004
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-2004 Delft University of Technology, the Netherlands. All Rights Reserved.