Opens a new buffered Writer for writing to this sink. The returned stream is not required to be a BufferedWriter in order to allow implementations to simply delegate to #openStream() when the stream returned by that method does not benefit from additional buffering. This meth
()
| 82 | |
| 83 | |
| 84 | public Writer openBufferedStream() throws IOException { |
| 85 | Writer writer = openStream(); |
| 86 | return (writer instanceof BufferedWriter) |
| 87 | ? (BufferedWriter) writer |
| 88 | : new BufferedWriter(writer); |
| 89 | } |
| 90 | |
| 91 | /** |
| 92 | * Writes the given character sequence to this sink. |