MCPcopy Create free account
hub / github.com/M66B/FairEmail / write

Method write

app/src/main/java/eu/faircode/email/EmailService.java:887–903  ·  view source on GitHub ↗
(int b)

Source from the content-addressed store, hash-verified

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));

Callers 15

onExecuteMethod · 0.45
onBackupMethod · 0.45
getSuggestionsMethod · 0.45
modifyDictionaryMethod · 0.45
onExecuteMethod · 0.45
_callMethod · 0.45
compressMethod · 0.45
onExecuteMethod · 0.45
addAttachmentMethod · 0.45
onExecuteMethod · 0.45
onExecuteMethod · 0.45
callMethod · 0.45

Calls 5

dMethod · 0.95
wMethod · 0.95
eMethod · 0.95
resetMethod · 0.65
toStringMethod · 0.45

Tested by

no test coverage detected