(int b)
| 885 | private ByteArrayOutputStream bos = new ByteArrayOutputStream(); |
| 886 | |
| 887 | @Override |
| 888 | public void write(int b) { |
| 889 | try { |
| 890 | if (((char) b) == '\n') { |
| 891 | String line = bos.toString(); |
| 892 | if (log) |
| 893 | if (line.endsWith("ignoring socket timeout")) |
| 894 | Log.d("javamail", user + " " + line); |
| 895 | else |
| 896 | Log.w("javamail", user + " " + line); |
| 897 | bos.reset(); |
| 898 | } else |
| 899 | bos.write(b); |
| 900 | } catch (Throwable ex) { |
| 901 | Log.e(ex); |
| 902 | } |
| 903 | } |
| 904 | }, true)); |
| 905 | |
| 906 | //System.setProperty("mail.socket.debug", Boolean.toString(debug)); |
no test coverage detected