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