All Packages  Class Hierarchy  This Package  Previous  Next  Index


Class com.abc.templates.Substitutor

java.lang.Object
   |
   +----com.abc.templates.Substitutor

public class Substitutor
extends Object

Basically it's a wrapper for Hashtable. It used to retrive values to substitute tags which are starting and ending with symbol @. It works the same way as HtmlWriter does.

See Also:
HtmlWriter

 o Substitutor()
constructor.
 o addSubstitute(String sTag, String sValue)
adds tags for substitute. Example: addSubstitute( "Name", "George-Tersaakov") please note that we do not need @ symbols here.
 o getSubstitute(String sTag)
retrieves value to substitute tag.
 o Load(String sFile)
Loads tbale to substitute from file. sFile must be full path to that file.

 o Substitutor
public Substitutor()
 o addSubstitute
public final void addSubstitute(String sName,
                                 String sSubstitute)
 o getSubstitute
public final String getSubstitute(String sName)
 o Load
public final void Load(String sFileName) throws IOException, FileNotFoundException


All Packages  Class Hierarchy  This Package  Previous  Next  Index