S
Steve Jasper
I'm trying to redirect the Standard System.out to a custom
OutputStream in order to collect and add each write() to a String,
which I will later save off for a variety of other purposes.
I can redirect the standard system.out using System.setOut() without
any problem, but I'm not sure how to intercept every write().
Essentially my goal is to have everything being printed to the console
to also be collected into String objects and stored in a HashMap or
Vector for later use.
Can anyone offer any suggestions? I feel like I'm missing something
real easy....
OutputStream in order to collect and add each write() to a String,
which I will later save off for a variety of other purposes.
I can redirect the standard system.out using System.setOut() without
any problem, but I'm not sure how to intercept every write().
Essentially my goal is to have everything being printed to the console
to also be collected into String objects and stored in a HashMap or
Vector for later use.
Can anyone offer any suggestions? I feel like I'm missing something
real easy....