MCPcopy Create free account
hub / github.com/antlr/codebuff / asCharSource

Method asCharSource

corpus/java/training/guava/io/Resources.java:87–89  ·  view source on GitHub ↗

Returns a CharSource that reads from the given URL using the given character set. @since 14.0

(URL url, Charset charset)

Source from the content-addressed store, hash-verified

85 * @since 14.0
86 */
87 public static CharSource asCharSource(URL url, Charset charset) {
88 return asByteSource(url).asCharSource(charset);
89 }
90
91 /**
92 * Reads all bytes from a URL into a byte array.

Callers 3

asCharSourceMethod · 0.95
toStringMethod · 0.95
readLinesMethod · 0.95

Calls 1

asByteSourceMethod · 0.95

Tested by

no test coverage detected