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

Method load

ij/src/main/java/ij/text/TextWindow.java:303–310  ·  view source on GitHub ↗

Appends the text in the specified file to the end of this TextWindow.

(BufferedReader in)

Source from the content-addressed store, hash-verified

301
302 /** Appends the text in the specified file to the end of this TextWindow. */
303 public void load(BufferedReader in) throws IOException {
304 int count=0;
305 while (true) {
306 String s=in.readLine();
307 if (s==null) break;
308 textPanel.appendLine(s);
309 }
310 }
311
312 public void actionPerformed(ActionEvent evt) {
313 String cmd = evt.getActionCommand();

Callers 1

openFileMethod · 0.95

Calls 2

appendLineMethod · 0.80
readLineMethod · 0.45

Tested by

no test coverage detected