MCPcopy Create free account
hub / github.com/VolmitSoftware/Adapt / readAll

Method readAll

src/main/java/com/volmit/adapt/util/IO.java:330–342  ·  view source on GitHub ↗
(File f)

Source from the content-addressed store, hash-verified

328 }
329
330 public static String readAll(File f) throws IOException {
331 BufferedReader bu = new BufferedReader(new FileReader(f));
332 String c = "";
333 String l = "";
334
335 while ((l = bu.readLine()) != null) {
336 c += l + "\n";
337 }
338
339 bu.close();
340
341 return c;
342 }
343
344 public static String readAll(InputStream in) throws IOException {
345 BufferedReader bu = new BufferedReader(new InputStreamReader(in));

Callers 7

getMethod · 0.95
getConfigMethod · 0.95
peekDataMethod · 0.95
loadMethod · 0.95
loadPlayerDataMethod · 0.95
getMethod · 0.95
getConfigMethod · 0.95

Calls 1

closeMethod · 0.65

Tested by

no test coverage detected