Class ResourceLoader
java.lang.Object
uk.ac.manchester.spinnaker.storage.sqlite.ResourceLoader
Factoring out of correct resource loading pattern.
-
Method Summary
Modifier and TypeMethodDescriptionstatic String
loadResource
(String name) Load a text resource from the given name using this class's class loader.
-
Method Details
-
loadResource
Load a text resource from the given name using this class's class loader.- Parameters:
name
- The name of the resource to load.- Returns:
- The content of the resource.
- Throws:
RuntimeException
- If things don't work. Shouldn't happen if build is correct.
-