EDIT: I have edited the post to clarify my question, now I myself, have more understanding.
I am essentially, as the title says, attempting to outpu
You might need to use PipedOutputStream... see the answers to the question here:
How to redirect all console output to a Swing JTextArea/JTextPane with the right encoding?
Basically what this does is, it redirects the System.out to a buffer, from which, the program can read the output printed with System.out. This is called Piping