+ private void readUnlimited(InputStreamReader inputStreamReader) {
+ final BufferedReader reader = new BufferedReader(inputStreamReader);
+ new Thread(new Runnable() {
+ @Override
+ public void run() {
+ String line;
+ try {
+ while((line = reader.readLine()) != null) {
+ prompter.sendMessage(line);
+ }
+ } catch (Exception e) {
+ Log.w("end read unlimited!", e);
+ }
+ }
+ }).start();
+ }
+