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
()
| 91 | |
| 92 | |
| 93 | public OutputStream openBufferedStream() throws IOException { |
| 94 | OutputStream out = openStream(); |
| 95 | return (out instanceof BufferedOutputStream) |
| 96 | ? (BufferedOutputStream) out |
| 97 | : new BufferedOutputStream(out); |
| 98 | } |
| 99 | |
| 100 | /** |
| 101 | * Writes all the given bytes to this sink. |
nothing calls this directly
no test coverage detected