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

Method writeText

app/src/main/java/eu/faircode/email/Helper.java:3047–3052  ·  view source on GitHub ↗
(File file, String content)

Source from the content-addressed store, hash-verified

3045 }
3046
3047 static void writeText(File file, String content) throws IOException {
3048 try (FileOutputStream out = new FileOutputStream(file)) {
3049 if (content != null)
3050 out.write(content.getBytes());
3051 }
3052 }
3053
3054 static String readStream(InputStream is) throws IOException {
3055 return readStream(is, StandardCharsets.UTF_8);

Callers 15

onSendMethod · 0.95
updateSyncdataMethod · 0.95
receiveRemoteDataMethod · 0.95
onExecuteMethod · 0.95
lockMessageMethod · 0.95
onExecuteMethod · 0.95
decodeMessageMethod · 0.95
onExecuteMethod · 0.95
answerMethod · 0.95
onBodyMethod · 0.95
onSynchronizeMessagesMethod · 0.95
synchronizeMessageMethod · 0.95

Calls 2

writeMethod · 0.45
getBytesMethod · 0.45

Tested by

no test coverage detected