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

Method asCharSource

corpus/java/training/guava/io/Files.java:217–219  ·  view source on GitHub ↗

Returns a new CharSource for reading character data from the given file using the given character set. @since 14.0

(File file, Charset charset)

Source from the content-addressed store, hash-verified

215 * @since 14.0
216 */
217 public static CharSource asCharSource(File file, Charset charset) {
218 return asByteSource(file).asCharSource(charset);
219 }
220
221 /**
222 * Returns a new {@link CharSink} for writing character data to the given file using the given

Callers 4

toStringMethod · 0.95
copyMethod · 0.95
readFirstLineMethod · 0.95
readLinesMethod · 0.95

Calls 1

asByteSourceMethod · 0.95

Tested by

no test coverage detected