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

Method asCharSink

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

Returns a new {@link CharSink} for writing character data to the given file using the given character set. The given {@code modes} control how the file is opened for writing. When no mode is provided, the file will be truncated before writing. When the {@link FileWriteMode#APPEND APPEND} mode is pro

(File file, Charset charset, FileWriteMode... modes)

Source from the content-addressed store, hash-verified

219 * @since 14.0
220 */
221 public static CharSink asCharSink(File file, Charset charset, FileWriteMode... modes) {
222 return asByteSink(file, modes).asCharSink(charset);
223 }
224
225 /**
226 * Reads all bytes from a file into a byte array.

Callers 5

writeMethod · 0.95
appendMethod · 0.95
createSinkMethod · 0.95
createSinkMethod · 0.45
ArbitraryInstancesClass · 0.45

Calls 1

asByteSinkMethod · 0.95

Tested by 2

createSinkMethod · 0.76
createSinkMethod · 0.36