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

Method toString

output/java_guava/1.4.17/Resources.java:118–120  ·  view source on GitHub ↗

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

(URL url, Charset charset)

Source from the content-addressed store, hash-verified

116
117
118 public static String toString(URL url, Charset charset) throws IOException {
119 return asCharSource(url, charset).read();
120 }
121
122 /**
123 * Streams lines from a URL, stopping when our callback returns false, or we have read all of the

Callers

nothing calls this directly

Calls 2

asCharSourceMethod · 0.95
readMethod · 0.45

Tested by

no test coverage detected