public static Image loadImage(RelativePath relativePath) { if (relativePath == AgnosticUIConfiguration.NO_ICON) { return NO_IMAGE; } ResourceLoader resourceLoader = new ResourceLoader(); InputStream imageStream = resourceLoader.loadResource(relativePath); return new Image(imageStream, 16, 16, true, true); }
public InputStream getStream() throws GenericConfigException { return ResourceLoader.loadResource(this.xmlFilename, this.location, this.loaderName); }
private InputStream load(String filename) throws IOException { return ResourceLoader.loadResource(filename); }