我知道我可以做到这一点(当然有相应的尝试和捕捉)
Path path = Paths.get(outputFieLocation);
BufferedWriter writer = Files.newBufferedWriter(path, StandardCharsets.UTF_8);
这也是
BufferedWriter writer = new BufferedWriter(new FileWriter(outputFieLocation), 5 * 1024);
有没有办法使用 Path 作为参数来设置缓冲区大小?