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

Method readLine

app/src/main/java/eu/faircode/email/Helper.java:3090–3100  ·  view source on GitHub ↗
(InputStream is, Charset charset)

Source from the content-addressed store, hash-verified

3088 }
3089
3090 public static String readLine(InputStream is, Charset charset) throws IOException {
3091 ByteArrayOutputStream bos = new ByteArrayOutputStream();
3092 int b = is.read();
3093 if (b < 0)
3094 return null;
3095 while (b >= 0 && b != '\n') {
3096 bos.write(b);
3097 b = is.read();
3098 }
3099 return new String(bos.toByteArray(), charset);
3100 }
3101
3102 static void copy(File src, File dst) throws IOException {
3103 try (InputStream is = new FileInputStream(src)) {

Callers 13

ensureSuffixListMethod · 0.45
onExecuteMethod · 0.45
readMethod · 0.45
getWordMethod · 0.45
onExecuteMethod · 0.45
onExecuteMethod · 0.45
filterMethod · 0.45
fromMethod · 0.45
onExecuteMethod · 0.45
checkMethod · 0.45
loadMethod · 0.45
makesafeMethod · 0.45

Calls 2

readMethod · 0.45
writeMethod · 0.45

Tested by

no test coverage detected