Here you can find the source of newBufferedReader(Path path)
public static BufferedReader newBufferedReader(Path path)
//package com.java2s; //License from project: Open Source License import java.io.BufferedReader; import java.io.IOException; import java.nio.charset.Charset; import java.nio.charset.StandardCharsets; import java.nio.file.Files; import java.nio.file.Path; public class Main { public static BufferedReader newBufferedReader(Path path) { return newBufferedReader(path, StandardCharsets.UTF_8); }/*from w w w.ja v a 2 s .c om*/ public static BufferedReader newBufferedReader(Path path, Charset cs) { try { return Files.newBufferedReader(path, cs); } catch (IOException e) { throw new RuntimeException(e); } } }