117118119120121122123124125126127
TreeParser treeInput = null; switch (inputFileType) { case SILK: treeInput = new SilkParser(in, SilkEnv.newEnv(inputResource)); break; case XML: treeInput = new XMLTreeParser(in); break; case JSON: