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

Method asCharSink

output/java_guava/1.4.17/Files.java:237–239  ·  view source on GitHub ↗

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

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

Source from the content-addressed store, hash-verified

235
236
237 public static CharSink asCharSink(File file, Charset charset, FileWriteMode... modes) {
238 return asByteSink(file, modes).asCharSink(charset);
239 }
240
241 private static FileWriteMode[] modes(boolean append) {
242 return append ? new FileWriteMode[] {FileWriteMode.APPEND} : new FileWriteMode[0];

Callers 1

writeMethod · 0.95

Calls 1

asByteSinkMethod · 0.95

Tested by

no test coverage detected