|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--com.objectwave.templateMerge.MergeTemplateWriter
| Constructor Summary | |
MergeTemplateWriter()
|
|
| Method Summary | |
static void |
containsSubTemplates(MergeTemplate result,
java.util.Vector templateNames)
Change by Zhou Cai Change this method to be public static |
static void |
dumpToText(java.util.Enumeration e,
java.io.BufferedWriter buff)
Write ascii code to the buffer containing the MergeTemplate definitions. |
static void |
dumpToXML(java.util.Enumeration e,
java.io.BufferedWriter buff)
Write the templates into the the buffer of an XML file. |
static InformationToken |
getToken(java.lang.String name)
Used when restoring templates from a text file. |
static InformationToken[] |
getTokenList()
Gets the TokenList attribute of the MergeTemplateWriter class |
static KnownTemplates |
importFromText(java.io.BufferedReader buff)
Entery point for reading in templates from a text file. |
static KnownTemplates |
importFromXML(java.io.Reader xmlFile)
Entery point for reading in templates from a XML file. |
protected java.lang.String |
readBody(MergeTemplate result,
java.io.BufferedReader rdr)
Used when restoring templates from a text file. |
MergeTemplate |
readFrom(java.io.BufferedReader rdr)
It is possible to create a text base version of the MergeTemplates. |
protected void |
readName(MergeTemplate result,
java.lang.String line)
Used when restoring templates from a text file. |
protected boolean |
readTemplates(MergeTemplate result,
java.io.BufferedReader rdr)
Used when restoring templates from a text file. |
protected boolean |
readTokens(MergeTemplate result,
java.io.BufferedReader rdr)
Used when restoring templates from a text file. |
protected void |
realizeTemplateCache(KnownTemplates known)
Convert the string names into real MergeTemplate objects. |
static void |
setTokenList(InformationToken[] toks)
Sets the TokenList attribute of the MergeTemplateWriter class |
static void |
writeOut(MergeTemplate temp,
java.io.BufferedWriter buff)
Entry point for writing templates as a text file. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public MergeTemplateWriter()
| Method Detail |
public static void setTokenList(InformationToken[] toks)
toks - The new TokenList valuepublic static InformationToken getToken(java.lang.String name)
name -
public static InformationToken[] getTokenList()
public static void containsSubTemplates(MergeTemplate result,
java.util.Vector templateNames)
result - templateNames -
public static void dumpToText(java.util.Enumeration e,
java.io.BufferedWriter buff)
throws java.io.IOException
e - Enumeration of mergeTemplate objects.buff -
java.io.IOException
public static void dumpToXML(java.util.Enumeration e,
java.io.BufferedWriter buff)
throws ConfigurationException
e - Enumeration mergeTemplate objects.buff - BufferedWriter The output buffer of an XML file
ConfigurationException - Receive the exception from XMLTemplateWriter
public static KnownTemplates importFromText(java.io.BufferedReader buff)
throws java.io.IOException
buff -
java.io.IOException
public static KnownTemplates importFromXML(java.io.Reader xmlFile)
throws ConfigurationException
xmlFile - FileReader Input Stream of the XML file
ConfigurationException - If there is any error in the procsssing of
the XML file
public static void writeOut(MergeTemplate temp,
java.io.BufferedWriter buff)
throws java.io.IOException
temp - buff -
java.io.IOException
public MergeTemplate readFrom(java.io.BufferedReader rdr)
throws java.io.IOException
rdr -
java.io.IOException
protected java.lang.String readBody(MergeTemplate result,
java.io.BufferedReader rdr)
throws java.io.IOException
result - rdr -
java.io.IOException
protected void readName(MergeTemplate result,
java.lang.String line)
result - line -
protected boolean readTemplates(MergeTemplate result,
java.io.BufferedReader rdr)
throws java.io.IOException
result - rdr -
java.io.IOException
protected boolean readTokens(MergeTemplate result,
java.io.BufferedReader rdr)
throws java.io.IOException
result - rdr -
java.io.IOExceptionprotected void realizeTemplateCache(KnownTemplates known)
known -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||