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

Method openBufferedStream

output/java_guava/1.4.18/CharSink.java:84–89  ·  view source on GitHub ↗

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

()

Source from the content-addressed store, hash-verified

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.

Callers 1

writeLinesMethod · 0.95

Calls 1

openStreamMethod · 0.95

Tested by

no test coverage detected