class TreeParser {

   public static Tree parseTree(Path path) throws IOException {
      Tree.Builder builder = Tree.Builder.aTreeBuilder();

      Files.lines(path)
        .forEach(line -> builder.withRow(parseLine(line)));

      return builder.build();

   }

}