void (InputStream is) { try (Stream<String> stream = new BufferedReader(new InputStreamReader(is, "<caret>UTF-8")).lines()) { stream.forEach(System.out::println); } catch (UnsupportedEncodingException e) { throw new RuntimeException(e); } }