|
|
com.architech.parser
|
Field Summary | |
protected boolean |
_debug
|
protected com.architech.config.rsConfiguration |
myConfiguration
|
Constructor Summary | |
rspParser()
|
Method Summary | |
void |
closeParser()
Close parser and deallocate resources. |
void |
debug(String msg)
Writes a message to the log if debug mode is set. |
boolean |
debugMode()
Returns current status of the debugMode flag. |
void |
flush()
Flush any data to the output stream. |
static Object |
getClassInstance(String className)
Create a parser instance. |
Object |
getContext()
Return the context in which this parser is running (e.g. |
boolean |
getDebug()
Returns current status of the debugMode flag. |
InputStream |
getInputStream()
Return current input-stream object. |
OutputStream |
getOutputStream()
Return current output-stream object. |
String |
getParam(String param)
Return configuration value. |
com.architech.parser.rspParserInterface |
getParser()
Return the chained parser (future implementation). |
BufferedReader |
getReader()
Return current reader object. |
BufferedWriter |
getWriter()
Return current writer object. |
void |
initParser()
Perform initialization of parser. |
void |
logmsg(String msg)
Writes a message to the log. |
void |
registerScriptBeans(com.architech.script.scriptEngine se)
Register objects in the script engine. |
void |
setConfiguration(com.architech.config.rsConfiguration config)
Set the parser configuration. |
void |
setContext(Object context)
Set the context in which the parser runs. |
void |
setDebug(boolean debug)
Sets the status of the debugMode flag. |
void |
setInputStream(InputStream is)
Set the parser input stream. |
void |
setInputStream(Reader is)
Use Reader object for input. |
void |
setInputStream(String is)
Use a string as input. |
void |
setOutputStream(OutputStream os)
Set the parser output stream. |
void |
setOutputStream(Writer os)
Use Writer object for output. |
void |
setParam(String param,
String value)
Set parser configuration value. |
void |
setParser(com.architech.parser.rspParserInterface parser)
Set the chained parser (future implementation). |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.architech.parser.rspParserInterface |
readEntry, writeEntry |
Methods inherited from interface com.architech.VersionInfoInterface |
getVersion |
Field Detail |
protected com.architech.config.rsConfiguration myConfiguration
protected boolean _debug
Constructor Detail |
public rspParser()
Method Detail |
public Object getContext()
getContext
in interface com.architech.parser.rspParserInterface
public void setContext(Object context)
setContext
in interface com.architech.parser.rspParserInterface
context
- The context objectpublic void setParser(com.architech.parser.rspParserInterface parser)
setParser
in interface com.architech.parser.rspParserInterface
parser
- The chained parserpublic com.architech.parser.rspParserInterface getParser()
getParser
in interface com.architech.parser.rspParserInterface
public void setParam(String param, String value)
setParam
in interface com.architech.parser.rspParserInterface
param
- The parameter namevalue
- The parameter valuepublic String getParam(String param)
getParam
in interface com.architech.parser.rspParserInterface
param
- The name of the parameter to returnpublic void setConfiguration(com.architech.config.rsConfiguration config)
setConfiguration
in interface com.architech.parser.rspParserInterface
config
- The configuration objectpublic void setInputStream(InputStream is)
setInputStream
in interface com.architech.parser.rspParserInterface
is
- The InputStream object (e.g. FileInputStream, SocketInputStream etc. ..)public void setOutputStream(OutputStream os)
setOutputStream
in interface com.architech.parser.rspParserInterface
os
- The OutputStream object (e.g. FileOutputStream, SocketOutputStream etc. ..)public void setInputStream(String is)
setInputStream
in interface com.architech.parser.rspParserInterface
is
- String to read data frompublic void setInputStream(Reader is)
setInputStream
in interface com.architech.parser.rspParserInterface
is
- Reader objectpublic void setOutputStream(Writer os)
setOutputStream
in interface com.architech.parser.rspParserInterface
os
- Writer objectpublic BufferedReader getReader()
getReader
in interface com.architech.parser.rspParserInterface
public BufferedWriter getWriter()
getWriter
in interface com.architech.parser.rspParserInterface
public InputStream getInputStream()
public OutputStream getOutputStream()
public void initParser() throws Exception
initParser
in interface com.architech.parser.rspParserInterface
Exception
- public void closeParser()
closeParser
in interface com.architech.parser.rspParserInterface
public static Object getClassInstance(String className) throws Exception
className
- The complete Java class namepublic void logmsg(String msg)
msg
- The log messagepublic void debug(String msg)
msg
- The log messagepublic boolean debugMode()
public boolean getDebug()
getDebug
in interface com.architech.parser.rspParserInterface
public void setDebug(boolean debug)
setDebug
in interface com.architech.parser.rspParserInterface
debug
- True if debug mode is enabled, false otherwise.public void registerScriptBeans(com.architech.script.scriptEngine se) throws Exception
registerScriptBeans
in interface com.architech.parser.rspParserInterface
se
- The script enginepublic void flush()
flush
in interface com.architech.parser.rspParserInterface
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
![]() |
|