javaredirectstandardoutput

Disabling auto flush on standard error (Java)


My standard error error and standard output are getting garbled and I want to be able to put "\n" newline characters into standard error bound output without it auto-flushing. Is this physically possible in Java?


Solution

  • I don't think so. The PrintSteam System.err does not appear to be modifiable and I do not see any way for java.lang.System.setErr to convey this functionality.