public class Resources extends Object
| Constructor and Description |
|---|
Resources() |
| Modifier and Type | Method and Description |
|---|---|
static String |
getResourceAsFileLocation(String resourceLocation)
Returns the file path to the resource in the given directory relative from the resources folder.
|
static InputStream |
getResourceAsStream(String resourceLocation)
Returns the resource as a InputStream, this is the most save way to get resources independently from packaging.
|
public static String getResourceAsFileLocation(String resourceLocation)
resourceLocation - The location of the resource (relative from the resource folder).public static InputStream getResourceAsStream(String resourceLocation)
resourceLocation - The location of the resource (relative from the resource folder).Copyright © 2017. All rights reserved.