- public void open(altos_device device) throws FileNotFoundException {
- close();
- altos = libaltos.altos_open(device);
- input_thread = new Thread(this);
- input_thread.start();
- }
- public AltosSerialReader () {
- altos = null;
- input_thread = null;
- line = "";
- monitors = new LinkedList<LinkedBlockingQueue<String>> ();
- reply_queue = new LinkedBlockingQueue<String> ();
+ public void putc(char c) {
+ if (altos != null)
+ libaltos.altos_putchar(altos, c);