This week's book giveaway is in the Mac OS forum. We're giving away four copies of a choice of "Take Control of Upgrading to Yosemite" or "Take Control of Automating Your Mac" and have Joe Kissell on-line! See this thread for details.
About to extend java.io.OutputStream But I need to override the method write(int b) Actually the implementatino should print the value in a textArea like textArea.append(new String(...)) It is about the 'int b' How can I leverage this parameter and print it out.
I think in this case it's better to override the other write methods as well. These are mostly linked to each other, with one calling the other; usually, write(int) calls write(int, int, int) and that one calls write(int).
In your case it would best to focus on write(int, int, int):
I have one other suggestion for you though: don't overwrite OutputStream but Writer instead. OutputStream is not really built for handling text. For the writer you'd only need to override the write(char, int, int) method, which can be done as I did above.