Opens a new buffered OutputStream for writing to this sink. The returned stream is not required to be a BufferedOutputStream in order to allow implementations to simply delegate to #openStream() when the stream returned by that method does not benefit from additional bufferin
()
| 84 | * @since 15.0 (in 14.0 with return type {@link BufferedOutputStream}) |
| 85 | */ |
| 86 | public OutputStream openBufferedStream() throws IOException { |
| 87 | OutputStream out = openStream(); |
| 88 | return (out instanceof BufferedOutputStream) |
| 89 | ? (BufferedOutputStream) out |
| 90 | : new BufferedOutputStream(out); |
| 91 | } |
| 92 | |
| 93 | /** |
| 94 | * Writes all the given bytes to this sink. |
nothing calls this directly
no test coverage detected