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