MCPcopy Create free account
hub / github.com/antlr/codebuff / openBufferedStream

Method openBufferedStream

corpus/java/training/guava/io/ByteSink.java:86–91  ·  view source on GitHub ↗

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

()

Source from the content-addressed store, hash-verified

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.

Callers

nothing calls this directly

Calls 1

openStreamMethod · 0.95

Tested by

no test coverage detected