code: public static <T> void lineByLine(InputStream inputStream, Function<String, T> function) {
          try (BufferedReader br = new BufferedReader(new InputStreamReader(inputStream))) {
              String line;
              while ((line = br.readLine()) != null) {
                  function.apply(line);
              }
          } catch (IOException e) {
              throw new RuntimeException(e);
          }
      }
docs: 读取流，并且一行一行的处理;读取完毕后会将流关闭。
  
  @param inputStream {@link InputStream}