MCPcopy Create free account
hub / github.com/AstroImageJ/astroimagej / loadAppletProps

Method loadAppletProps

ij/src/main/java/ij/Prefs.java:395–410  ·  view source on GitHub ↗
(InputStream f, Applet applet)

Source from the content-addressed store, hash-verified

393 */
394
395 @Deprecated(since = "IJ XX; Java 26")
396 static String loadAppletProps(InputStream f, Applet applet) {
397 if (f==null)
398 return PROPS_NAME+" not found in ij.jar";
399 try {
400 props.load(f);
401 f.close();
402 }
403 catch (IOException e) {return("Error loading "+PROPS_NAME);}
404 try {
405 URL url = new URL(applet.getDocumentBase(), "images/");
406 imagesURL = url.toString();
407 }
408 catch (Exception e) {}
409 return null;
410 }
411
412 /** Returns the URL of the directory that contains the ImageJ sample images. */
413 public static String getImagesURL() {

Callers 1

loadMethod · 0.95

Calls 4

loadMethod · 0.65
closeMethod · 0.65
getDocumentBaseMethod · 0.65
toStringMethod · 0.45

Tested by

no test coverage detected