Package jay.yydebug

Class yyJInputStream

java.lang.Object
java.io.InputStream
jay.yydebug.yyJInputStream
All Implemented Interfaces:
KeyListener, Closeable, AutoCloseable, EventListener

public class yyJInputStream extends InputStream implements KeyListener
used to reroute standard input from a 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.

  • Field Details

    • line

      protected final StringBuffer line
      line edit buffer.
    • queue

      protected ArrayList queue
      completed lines, ready to be read. Invariant: null after close().
  • Constructor Details

    • yyJInputStream

      public yyJInputStream()
  • Method Details