public static char[] readCharBuffer(Path path) { try { long bufSize = Files.size(path); return readCharBuffer(Files.newBufferedReader(path, DEFAULT_CHARSET), (int) bufSize); } catch (IOException ex) { return Exceptions.handle(char[].class, ex); } }