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

Method asByteSink

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

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

(File file, FileWriteMode... modes)

Source from the content-addressed store, hash-verified

176 * @since 14.0
177 */
178 public static ByteSink asByteSink(File file, FileWriteMode... modes) {
179 return new FileByteSink(file, modes);
180 }
181
182 private static final class FileByteSink extends ByteSink {
183

Callers 4

asCharSinkMethod · 0.95
writeMethod · 0.95
copyMethod · 0.95
createSinkMethod · 0.95

Calls

no outgoing calls

Tested by 1

createSinkMethod · 0.76