MCPcopy Index your code
hub / github.com/antlr/codebuff / toString

Method toString

output/java_guava/1.4.17/Files.java:271–273  ·  view source on GitHub ↗

Reads all characters from a file into a String, using the given character set. @param file the file to read from @param charset the charset used to decode the input stream; see StandardCharsets for helpful predefined constants @return a string containing all the characters from

(File file, Charset charset)

Source from the content-addressed store, hash-verified

269
270
271 public static String toString(File file, Charset charset) throws IOException {
272 return asCharSource(file, charset).read();
273 }
274
275 /**
276 * Overwrites a file with the contents of a byte array.

Callers

nothing calls this directly

Calls 2

asCharSourceMethod · 0.95
readMethod · 0.45

Tested by

no test coverage detected