There are extension functions File.inputStream()
and File.bufferedReader(...)
.
When I want to read the file as binary I would like to have File.bufferedInputStream
.
It is not a big deal, I can, of course, add such an extension function myself or explicitly create a BufferedInputStream for the InputStream.
I just wonder why it is the way it is.
Besides the inconvenience, it also seems strange that I can get either an input stream or a reader from the file, but only the latter is buffered.