public final class LocalResources extends Object
Modifier and Type | Method and Description |
---|---|
static File |
getFile(String path)
Returns a file object for the given path.
|
static InputStream |
getStream(String path)
Returns an
InputStream for the given path. |
static URL |
getUrl(String path)
See
getFile(String) and getStream(String) . |
public static File getFile(String path) throws IOException
getStream(String)
or getUrl(String)
for these.path
- a path relative to the current classpath.IOException
public static InputStream getStream(String path) throws IOException
InputStream
for the given path.IOException
getFile(String)
public static URL getUrl(String path) throws IOException
getFile(String)
and getStream(String)
.IOException
Copyright © 2012-2013. All Rights Reserved.