()
| 179 | this.sb = b; |
| 180 | } |
| 181 | @Override |
| 182 | public void run() { |
| 183 | byte[] buf = new byte[256]; |
| 184 | while (true) { |
| 185 | try { |
| 186 | int count = is.read(buf, 0, buf.length); |
| 187 | if (count == -1) break; |
| 188 | if (count == 0) { |
| 189 | try { sleep(1); } catch(InterruptedException e) { } |
| 190 | } |
| 191 | else { |
| 192 | sb.append(new String(buf, 0, count)); |
| 193 | } |
| 194 | } |
| 195 | catch(IOException e) { |
| 196 | showMessage("read error: " + e.toString()); |
| 197 | } |
| 198 | } |
| 199 | try { is.close(); } catch(IOException e) { } |
| 200 | } |
| 201 | } |
| 202 | |
| 203 | Thread out = null; |
no test coverage detected