interceptOtherWrites

Begin intercepting writes to the output and errors streams which are NOT performed through this type's writeOutput and writeError functions.

Writes to the "normal" output and error streams (such as through functions like println) can be read using the functions on the returned InterceptedStreams instance. Call InterceptedStreams.close to restore sending writes to the original output or error stream.

Since intercepting writes changes global process state, subsequent calls to this function will throw an exception until InterceptedStreams.close is called.