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)
| 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; |
no outgoing calls
no test coverage detected