_reader = new BufferedReader(new InputStreamReader(is)); _result = result; _messageKey = messageKey;
try { String line = null; while (true) { line = _reader.readLine(); if (line == null) { break; } _result.add(line); } } catch (Exception ex) { System.err.println("ThreadedReader " + _messageKey + " exception"); ex.printStackTrace(); }