public class ResourceUtils
extends java.lang.Object
Modifier | Constructor and Description |
---|---|
protected |
ResourceUtils()
Don't allow instantiation, do allow overrides.
|
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
loadTextFromResource(java.lang.Class resourceClass,
java.lang.String resourcePath,
java.lang.String encoding)
Load text from a resource file.
|
protected ResourceUtils()
public static java.lang.String loadTextFromResource(java.lang.Class resourceClass, java.lang.String resourcePath, java.lang.String encoding)
resourceClass
- Parent class for resource.resourcePath
- Resource file path relative to class.encoding
- Text encoding for resource file contents.