Package jay.yydebug

Class 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 Detail

      • queue

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

      • yyJInputStream

        public yyJInputStream()