Class ResourceLoader

java.lang.Object
uk.ac.manchester.spinnaker.storage.sqlite.ResourceLoader

public abstract class ResourceLoader
extends Object
Factoring out of correct resource loading pattern.
  • Method Details

    • loadResource

      public static String loadResource​(String name)
      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.