示例#1
0
 /**
  * Parse the input and return the root of the AST node structure.
  *
  * @param InputStream inputstream retrieved by a resource loader
  * @param String name of the template being parsed
  * @param dumpNamespace flag to dump the Velocimacro namespace for this template
  */
 public static SimpleNode parse(Reader reader, String templateName, boolean dumpNamespace)
     throws ParseException {
   return ri.parse(reader, templateName, dumpNamespace);
 }
示例#2
0
 /**
  * Parse the input and return the root of AST node structure. <br>
  * <br>
  * In the event that it runs out of parsers in the pool, it will create and let them be GC'd
  * dynamically, logging that it has to do that. This is considered an exceptional condition. It is
  * expected that the user will set the PARSER_POOL_SIZE property appropriately for their
  * application. We will revisit this.
  *
  * @param InputStream inputstream retrieved by a resource loader
  * @param String name of the template being parsed
  */
 public static SimpleNode parse(Reader reader, String templateName) throws ParseException {
   return ri.parse(reader, templateName);
 }