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

Method openBufferedStream

corpus/java/training/guava/io/CharSource.java:108–113  ·  view source on GitHub ↗

Opens a new BufferedReader for reading from this source. This method should return a new, independent reader each time it is called. The caller is responsible for ensuring that the returned reader is closed. @throws IOException if an I/O error occurs in the process of opening the reader

()

Source from the content-addressed store, hash-verified

106 * @throws IOException if an I/O error occurs in the process of opening the reader
107 */
108 public BufferedReader openBufferedStream() throws IOException {
109 Reader reader = openStream();
110 return (reader instanceof BufferedReader)
111 ? (BufferedReader) reader
112 : new BufferedReader(reader);
113 }
114
115 /**
116 * Returns the size of this source in chars, if the size can be easily determined without actually

Callers 2

readFirstLineMethod · 0.95
readLinesMethod · 0.95

Calls 1

openStreamMethod · 0.95

Tested by

no test coverage detected