Package org.insa.graphs.gui
Class StreamCapturer
java.lang.Object
java.io.OutputStream
org.insa.graphs.gui.StreamCapturer
- All Implemented Interfaces:
java.io.Closeable
,java.io.Flushable
,java.lang.AutoCloseable
public class StreamCapturer
extends java.io.OutputStream
-
Constructor Summary
Constructors Constructor Description StreamCapturer(javax.swing.JTextArea output)
Create a new StreamCapturer without prefix.StreamCapturer(javax.swing.JTextArea output, java.lang.String prefix)
-
Method Summary
-
Constructor Details
-
StreamCapturer
public StreamCapturer(javax.swing.JTextArea output, java.lang.String prefix)- Parameters:
output
- Output JTextArea to which this stream should print.prefix
- Prefix to add to each line of this output.
-
StreamCapturer
public StreamCapturer(javax.swing.JTextArea output)Create a new StreamCapturer without prefix.- Parameters:
output
- Output JTextArea to which this stream should print.
-
-
Method Details