Package org.hortonmachine.gui.console
Class CustomOutputStream
java.lang.Object
java.io.OutputStream
org.hortonmachine.gui.console.CustomOutputStream
- All Implemented Interfaces:
java.io.Closeable,java.io.Flushable,java.lang.AutoCloseable
public class CustomOutputStream
extends java.io.OutputStream
This class extends from OutputStream to redirect output to a JTextArrea
- Author:
- www.codejava.net
-
Constructor Summary
Constructors Constructor Description CustomOutputStream(javax.swing.JTextArea textArea) -
Method Summary
Modifier and Type Method Description voidwrite(int b)
-
Constructor Details
-
CustomOutputStream
public CustomOutputStream(javax.swing.JTextArea textArea)
-
-
Method Details
-
write
public void write(int b) throws java.io.IOException- Specified by:
writein classjava.io.OutputStream- Throws:
java.io.IOException
-