public final class URLResource extends Object
Copyright (c) 2002-2017 Delft University of Technology, Jaffalaan 5, 2628 BX Delft, the Netherlands. All rights reserved.
See for project information www.simulation.tudelft.nl.
The DSOL project is distributed under the following BSD-style license:
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the
following conditions are met:
Modifier and Type | Method and Description |
---|---|
static URL |
getResource(String name)
Resolves a resource for name.
|
static URL |
getResource(String name,
String base)
Resolves a resource for name.
|
static InputStream |
getResourceAsStream(String name)
returns the resource as stream.
|
public static URL getResource(String name)
name
- the name to search forpublic static URL getResource(String name, String base)
name
- the name to search forbase
- the base for relative pathspublic static InputStream getResourceAsStream(String name)
name
- the name of the resourceCopyright © 2015–2017 Delft University of Technology. All rights reserved.