Package io.nuov.util
Class ResourcesUtils
java.lang.Object
io.nuov.util.ResourcesUtils
The class ResourcesUtils.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic InputStreamgetInputStream(String path) Loads a file in src/main/resources folder and returns it as an InputStream.static StringLoads a file in src/main/resources folder and returns it as a String.
-
Constructor Details
-
ResourcesUtils
public ResourcesUtils()
-
-
Method Details
-
getInputStream
Loads a file in src/main/resources folder and returns it as an InputStream.- Parameters:
path- the path of the file (relative to src/main/resources)- Returns:
- the input stream
-
getString
Loads a file in src/main/resources folder and returns it as a String.- Parameters:
path- the path of the file (relative to src/main/resources)- Returns:
- the file as a String
-