Could I duplicate or intercept an output stream in Java?

Viewed 5221

I want to intercept the standard output stream, then copy the content to another stream, but I also hope to keep the standard output stream like the original. Could I achieve that in Java?

2 Answers
Related