I know I can do this (with the corresponding try and catch of course)
Path path = Paths.get(outputFieLocation);
BufferedWriter writer = Files.newBufferedWriter(path, StandardCharsets.UTF_8);
and this as well
BufferedWriter writer = new BufferedWriter(new FileWriter(outputFieLocation), 5 * 1024);
Is there any way to set a buffer size using Path as a parameter?