java buffered reader read huge lines code example Example: java bufferedreader read all lines line = buffer.lines().collect(Collectors.joining());