예제 #1
0
 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);
 }
예제 #3
0
 private InputStream load(String filename) throws IOException {
   return ResourceLoader.loadResource(filename);
 }