ariba.util.io
Class TemplateParser

java.lang.Object
  extended by ariba.util.io.TaggedStringProcessor
      extended by ariba.util.io.TemplateParser
Direct Known Subclasses:
HTMLTemplateParser

public class TemplateParser
extends TaggedStringProcessor


Field Summary
 
Fields inherited from class ariba.util.io.TaggedStringProcessor
ArgsSeparator, BeginArgsChar, EndArgsChar, TagDelimiter
 
Constructor Summary
TemplateParser(TagHandler handler)
          Creates a new TemplateParser with the given tag handler.
 
Method Summary
 void parseTemplate(java.lang.String template, java.io.PrintWriter out)
          Parses the given template file, replacing any tags found with the string returned by our tag handler's processTag() method.
 
Methods inherited from class ariba.util.io.TaggedStringProcessor
arguments, method, processString, processString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TemplateParser

public TemplateParser(TagHandler handler)
Creates a new TemplateParser with the given tag handler.

Method Detail

parseTemplate

public void parseTemplate(java.lang.String template,
                          java.io.PrintWriter out)
Parses the given template file, replacing any tags found with the string returned by our tag handler's processTag() method. This method may print an error message to the output stream if an unexpected error occurs.



AribaWeb User Interface Development Framework
Copyright © 2000-2014 Ariba, Inc. All Rights Reserved.