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

Method asCharSource

android/guava/src/com/google/common/io/Files.java:209–211  ·  view source on GitHub ↗

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

207 * @since 14.0
208 */
209 public static CharSource asCharSource(File file, Charset charset) {
210 return asByteSource(file).asCharSource(charset);
211 }
212
213 /**
214 * Returns a new {@link CharSink} for writing character data to the given file using the given

Callers 6

toStringMethod · 0.95
copyMethod · 0.95
readFirstLineMethod · 0.95
readLinesMethod · 0.95
createSourceMethod · 0.95
createSourceMethod · 0.45

Calls 1

asByteSourceMethod · 0.95

Tested by 2

createSourceMethod · 0.76
createSourceMethod · 0.36