public void run() {
        res = "";

            while (!stop) {
                try {
                    reader.read(buf);
                    res += new String(buf);

                } catch (IOException ex) {
                    //Logger.getLogger(SennaReader.class.getName()).log(Level.SEVERE, null, ex);
                }
            }
        }