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

Method asCharSink

corpus/java/training/guava/io/Files.java:229–231  ·  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

227 * @since 14.0
228 */
229 public static CharSink asCharSink(File file, Charset charset, FileWriteMode... modes) {
230 return asByteSink(file, modes).asCharSink(charset);
231 }
232
233 private static FileWriteMode[] modes(boolean append) {
234 return append

Callers 1

writeMethod · 0.95

Calls 1

asByteSinkMethod · 0.95

Tested by

no test coverage detected