java.lang.Object
net.foxgenesis.util.ResourceUtils
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic PropertiesgetPropertiesResource(URL path) linesFromResource(URL path) Read all lines from a resource
-
Constructor Details
-
ResourceUtils
public ResourceUtils()
-
-
Method Details
-
linesFromResource
Read all lines from a resource- Parameters:
path- -URLpath to the resource- Returns:
- Returns all lines as a
List<String> - Throws:
IOException- Thrown if an error occurs while reading theInputStreamof the resource
-
getPropertiesResource
- Throws:
IOException
-