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