Logo Search packages:      
Sourcecode: yydebug version File versions  Download package

jay::yydebug::yyJInputStream Class Reference

Inherits java::io::InputStream, and java::awt::event::KeyListener.

List of all members.


Detailed Description

used to reroute standard input from a javax.swing.JTextArea. Feeds all read methods from listening to typed keys. Should not deadlock because one should generally not read from within the event thread.

While this implementation avoids Java generics, code for a generic version has simply been commented out.

Definition at line 21 of file yyJInputStream.java.


Public Member Functions

synchronized int available () throws IOException
synchronized void close () throws IOException
void keyPressed (KeyEvent ke)
void keyReleased (KeyEvent ke)
void keyTyped (KeyEvent ke)
synchronized int read (byte[] b, int off, int len) throws IOException
synchronized int read () throws IOException
long skip (long len)

Protected Member Functions

void doKey (JTextArea ta, char ch, boolean paste)

Protected Attributes

final StringBuffer line = new StringBuffer()
ArrayList queue = new ArrayList()
 protected ArrayList<byte[]> queue = new ArrayList<byte[]>();

The documentation for this class was generated from the following file:

Generated by  Doxygen 1.6.0   Back to index