MCPcopy Index your code
hub / github.com/antlr/codebuff / openBufferedStream

Method openBufferedStream

output/java_guava/1.4.16/ByteSource.java:113–118  ·  view source on GitHub ↗

Opens a new buffered InputStream for reading from this source. The returned stream is not required to be a BufferedInputStream in order to allow implementations to simply delegate to #openStream() when the stream returned by that method does not benefit from additional buffer

()

Source from the content-addressed store, hash-verified

111
112
113 public InputStream openBufferedStream() throws IOException {
114 InputStream in = openStream();
115 return (in instanceof BufferedInputStream)
116 ? (BufferedInputStream) in
117 : new BufferedInputStream(in);
118 }
119
120 /**
121 * Returns a view of a slice of this byte source that is at most {@code length} bytes long

Callers 1

openBufferedStreamMethod · 0.45

Calls 1

openStreamMethod · 0.95

Tested by

no test coverage detected