Package sc.iview.commands.demo
Class ResourceLoader
java.lang.Object
sc.iview.commands.demo.ResourceLoader
A helper class to facilitate loading resources from JARs.
This class is temporary until the SciJava I/O API evolves to support locations inside of JAR files.
-
Method Summary
Modifier and TypeMethodDescriptionstatic FilecreateFile(Class<?> c, String resourcePath) Creates a temporary file on disk with the contents of the given resource.
-
Method Details
-
createFile
Creates a temporary file on disk with the contents of the given resource.- Throws:
IOException
-