MCPcopy Index your code
hub / github.com/antlr/codebuff / asByteSink

Method asByteSink

output/java_guava/1.4.17/Files.java:192–194  ·  view source on GitHub ↗

Returns a new ByteSink for writing bytes to the given file. 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 provided, writes will append to the end of

(File file, FileWriteMode... modes)

Source from the content-addressed store, hash-verified

190
191
192 public static ByteSink asByteSink(File file, FileWriteMode... modes) {
193 return new FileByteSink(file, modes);
194 }
195
196 private static final class FileByteSink extends ByteSink {
197 private final File file;

Callers 3

asCharSinkMethod · 0.95
writeMethod · 0.95
copyMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected