Im using a thirdparty class that has the following method:
public void print(PrintStream s);
But what I want to do is acually log the output. SOmething like:
RecordingPrintStream p = new RecordingPrintStream
instance.print(p);
logger.log(p.getContents());
So what can I use as my RecordingPrintStream?
Something like: