code: public static InputStream asBufferedInputStream(File file) throws IOException {
          return asBufferedInputStream(Files.newInputStream(file.toPath()));
      }
docs: Returns an input stream that reads the contents of the given file. Additionally buffers the input stream to
  improve performance.
  
  @param file
  the file to read
  
  @return a (buffered) input stream for the file contents.
  
  @throws IOException
  if accessing the file results in an I/O error.