org.concord.util
Class TextReader
java.lang.Object
|
+--java.io.Reader
|
+--org.concord.util.TextReader
- All Implemented Interfaces:
- javax.swing.event.DocumentListener, java.util.EventListener
- public class TextReader
- extends java.io.Reader
- implements javax.swing.event.DocumentListener
Field Summary |
protected java.lang.StringBuffer |
buffer
|
protected javax.swing.text.Document |
document
|
protected java.lang.Thread |
inputWaitThread
|
protected javax.swing.JTextArea |
text
|
Fields inherited from class java.io.Reader |
lock |
Constructor Summary |
TextReader(javax.swing.JTextArea ta)
|
Methods inherited from class java.io.Reader |
mark, markSupported, reset, skip |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
text
protected javax.swing.JTextArea text
document
protected javax.swing.text.Document document
buffer
protected java.lang.StringBuffer buffer
inputWaitThread
protected java.lang.Thread inputWaitThread
TextReader
public TextReader(javax.swing.JTextArea ta)
close
public void close()
throws java.io.IOException
- Overrides:
close
in class java.io.Reader
read
public int read()
throws java.io.IOException
- Overrides:
read
in class java.io.Reader
read
public int read(char[] cbuf)
throws java.io.IOException
- Overrides:
read
in class java.io.Reader
read
public int read(char[] cbuf,
int off,
int len)
throws java.io.IOException
- Overrides:
read
in class java.io.Reader
ready
public boolean ready()
throws java.io.IOException
- Overrides:
ready
in class java.io.Reader
available
public int available()
throws java.io.IOException
changedUpdate
public void changedUpdate(javax.swing.event.DocumentEvent docEvent)
- Specified by:
changedUpdate
in interface javax.swing.event.DocumentListener
insertUpdate
public void insertUpdate(javax.swing.event.DocumentEvent docEvent)
- Specified by:
insertUpdate
in interface javax.swing.event.DocumentListener
removeUpdate
public void removeUpdate(javax.swing.event.DocumentEvent docEvent)
- Specified by:
removeUpdate
in interface javax.swing.event.DocumentListener
handleDocEvent
public void handleDocEvent(javax.swing.event.DocumentEvent docEvent)