|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.synz.igor.parser.TemplateParser
This class is responsible for parsing templates.
Method Summary | |
static java.lang.StringBuffer |
parseTemplate(java.lang.String templateFile)
Reads in the template file and returns it as a StringBuffer. |
static java.lang.String |
replaceMacros(java.lang.String s,
char c,
java.util.Hashtable hashtable)
Reads in the template file and returns it as a StringBuffer. |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Method Detail |
public static java.lang.StringBuffer parseTemplate(java.lang.String templateFile) throws java.io.IOException
public static java.lang.String replaceMacros(java.lang.String s, char c, java.util.Hashtable hashtable)
String
- s - the string containing the macros to be replacedchar
- c - delimeter used, default is '%'Hashtable
- hashtable - Hashtable of the name value pairs to be replaced in template
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |