in src/main/java/org/apache/datasketches/Files.java [716:730]
public static BufferedReader openBufferedReader(final File file, final int bufSize,
final Charset charset) {
final int bufSz = bufSize < DEFAULT_BUFSIZE ? DEFAULT_BUFSIZE : bufSize;
final Charset cSet = charset == null ? Charset.defaultCharset() : charset;
BufferedReader in = null; // default bufsize is 8192.
try {
final FileInputStream fis = new FileInputStream(file);
final InputStreamReader isr = new InputStreamReader(fis, cSet);
in = new BufferedReader(isr, bufSz);
} catch (final FileNotFoundException e) { // from FileInputStream
// never opened, so don't close it.
throw new RuntimeException(LS + "File Not Found: " + file.getPath() + LS + e);
}
return in;
}