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

Method asByteSink

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

184 * @since 14.0
185 */
186 public static ByteSink asByteSink(File file, FileWriteMode... modes) {
187 return new FileByteSink(file, modes);
188 }
189
190 private static final class FileByteSink extends ByteSink {
191

Callers 3

asCharSinkMethod · 0.95
writeMethod · 0.95
copyMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected