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

Substitutor
public Substitutor()
addSubstitute
public final void addSubstitute(String sName,
String
sSubstitute)
getSubstitute
public final String getSubstitute(String sName)
Load
public final void Load(String sFileName) throws IOException, FileNotFoundException
All Packages Class Hierarchy This Package Previous Next Index