MCPcopy
hub / github.com/google/guava / asCharSource

Method asCharSource

android/guava/src/com/google/common/io/Resources.java:83–85  ·  view source on GitHub ↗

Returns a {@link 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

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

Callers 4

asCharSourceMethod · 0.95
toStringMethod · 0.95
readLinesMethod · 0.95
createSourceMethod · 0.95

Calls 1

asByteSourceMethod · 0.95

Tested by 1

createSourceMethod · 0.76