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

Method revertSystemOut

ij/src/main/java/ij/io/LogStream.java:114–122  ·  view source on GitHub ↗

Use this method to revert System.out to the original output stream.

()

Source from the content-addressed store, hash-verified

112 * to the original output stream.
113 */
114 public static void revertSystemOut() {
115 if (originalSystemOut != null && temporarySystemOut != null) {
116 temporarySystemOut.flush();
117 temporarySystemOut.close();
118 System.setOut(originalSystemOut);
119 originalSystemOut = null;
120 temporarySystemOut = null;
121 }
122 }
123
124 /**
125 * Use this method to revert<code>System.err</code>

Callers 1

revertSystemMethod · 0.95

Calls 2

flushMethod · 0.65
closeMethod · 0.65

Tested by

no test coverage detected