Package net.hironico.common.swing
Class JTextAreaStreamReader
java.lang.Object
net.hironico.common.swing.JTextAreaStreamReader
This is a stream reader to put LIVE data read from the stream into a JTextArea.
This is a non blocking reader meaning the data is read in a separeated thread every 250 milliseconds.
-
Constructor Summary
ConstructorsConstructorDescriptionJTextAreaStreamReader(InputStream srcInputStream, JTextArea txtTarget) JTextAreaStreamReader(InputStream srcInputStream, JTextArea txtTarget, int maxRows) -
Method Summary
-
Constructor Details
-
JTextAreaStreamReader
-
JTextAreaStreamReader
-
-
Method Details
-
die
- Throws:
IOException
-
setMaxRows
public void setMaxRows(int maxRows) -
checkMaxRows
protected void checkMaxRows() -
accept
-