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

jay::yydebug::yyInputStream Class Reference

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

List of all members.

Detailed Description

used to reroute standard input from a java.awt.TextArea. 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 uses Java generics, code for a non-generic version has simply been commented out.

Definition at line 16 of file yyInputStream.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 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