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
()
| 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 |
no test coverage detected