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
()
| 111 | |
| 112 | |
| 113 | public BufferedReader openBufferedStream() throws IOException { |
| 114 | Reader reader = openStream(); |
| 115 | return (reader instanceof BufferedReader) |
| 116 | ? (BufferedReader) reader |
| 117 | : new BufferedReader(reader); |
| 118 | } |
| 119 | |
| 120 | /** |
| 121 | * Returns the size of this source in chars, if the size can be easily determined without actually |
no test coverage detected