Class ResourceLoader

java.lang.Object
sc.iview.commands.demo.ResourceLoader

public final class ResourceLoader extends Object
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 Details

    • createFile

      public static File createFile(Class<?> c, String resourcePath) throws IOException
      Creates a temporary file on disk with the contents of the given resource.
      Throws:
      IOException