code: public static void partByPart(InputStream _inputStream, String delimiter, Function<String, Object> function) {
          try (Scanner scanner = new Scanner(_inputStream);) {
              scanner.useDelimiter(delimiter);
              while (scanner.hasNext()) {
                  String next = scanner.next();
                  function.apply(next);
              }
          }
      }
docs: 读取流，并且一段一段的处理；完毕之后，此方法会帮你把流关闭。
  
  @param _inputStream 输入流
  @param delimiter    分段分隔符
  @param function     处理函数，入参为一个分段