Package xyz.cp74.utils
Class ResourceUtils
- java.lang.Object
-
- xyz.cp74.utils.ResourceUtils
-
public class ResourceUtils extends Object
ResourceUtils Read resources- Author:
- Christian Paul
-
-
Constructor Summary
Constructors Constructor Description ResourceUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static StringgetResourceFileAsString(String fileName)Reads given resource file as a string.
-
-
-
Method Detail
-
getResourceFileAsString
public static String getResourceFileAsString(String fileName) throws IOException
Reads given resource file as a string.- Parameters:
fileName- path to the resource file- Returns:
- the file's contents
- Throws:
IOException- if read fails for any reason
-
-