ThreeB 1.1
|
Plugin class to load the standard test data from the JAR file. More...
Public Member Functions | |
void | run (String arg) |
Plugin class to load the standard test data from the JAR file.
Definition at line 27 of file LoadTestData.java.
void LoadTestData::run | ( | String | arg | ) | [inline] |
Definition at line 29 of file LoadTestData.java.
{ Opener o = new Opener(); InputStream s = getClass().getClassLoader().getResourceAsStream("test_data.tif"); ImagePlus im = o.openTiff(s, "test_data.tiff"); try{ s.close(); } catch(IOException close_err){ Toolkit.getDefaultToolkit().beep(); ij.IJ.showStatus("Error reading image."); return; } im.show(); im.updateAndDraw(); System.out.println(getClass().getResource("").toString() + "\n"); System.out.println(getClass().getResource("").getPath().toString() + "\n"); System.out.println(getClass().getResource("").getFile().toString() + "\n"); }