|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ParserInterface
This is the interface implemented by all TDI parsers.
Method Summary | |
---|---|
void |
closeParser()
This method is called by the hosting component (e.g. |
void |
flush()
This method is called by some hosting components to flush any in-memory data to the current output stream. |
java.lang.Object |
getContext()
Gets the context attribute of the ParserInterface object. |
boolean |
getDebug()
Gets the debug attribute of the ParserInterface object. |
java.lang.String |
getParam(java.lang.String param)
Gets the param attribute of the ParserInterface object. |
ParserInterface |
getParser()
Gets the parser attribute of the ParserInterface object. |
java.io.BufferedReader |
getReader()
Gets the reader attribute of the ParserInterface object. |
java.io.BufferedWriter |
getWriter()
Gets the writer attribute of the ParserInterface object. |
void |
initParser()
This method is called by the hosting component (e.g. |
boolean |
isDeltaSupported()
Returns true if this connector is able to perform delta
updates. |
java.lang.Object |
querySchema(java.lang.Object source)
Discover the schema for the Parser. |
Entry |
readEntry()
Return the next entry from the current input stream. |
void |
registerScriptBeans(ScriptEngine se)
Called by the hosting component (e.g. |
void |
setConfiguration(ParserConfig config)
Sets the configuration attribute of the ParserInterface object |
void |
setContext(java.lang.Object context)
Sets the context attribute of the ParserInterface object. |
void |
setDebug(boolean debug)
Sets the debug attribute of the ParserInterface object. |
void |
setInputStream(java.io.InputStream is)
Sets the inputStream attribute of the ParserInterface object. |
void |
setInputStream(java.io.Reader is)
Sets the inputStream attribute of the ParserInterface object. |
void |
setInputStream(java.lang.String is)
Sets the inputStream attribute of the ParserInterface object. |
void |
setOutputStream(java.io.OutputStream os)
Sets the outputStream attribute of the ParserInterface object. |
void |
setOutputStream(java.io.Writer os)
Sets the outputStream attribute of the ParserInterface object. |
void |
setParam(java.lang.String param,
java.lang.String value)
Sets the param attribute of the ParserInterface object. |
void |
setParser(ParserInterface parser)
Sets the parser attribute of the ParserInterface object. |
void |
writeEntry(Entry entry)
Write an entry to the current output stream. |
Method Detail |
---|
void setInputStream(java.io.InputStream is)
is
- The new inputStream valuevoid setOutputStream(java.io.OutputStream os)
os
- The new outputStream valuevoid setInputStream(java.lang.String is)
is
- The new inputStream valuevoid setInputStream(java.io.Reader is)
is
- The new inputStream valuevoid setOutputStream(java.io.Writer os)
os
- The new outputStream valuevoid setParser(ParserInterface parser)
parser
- The new parser valueParserInterface getParser()
java.io.BufferedReader getReader()
java.io.BufferedWriter getWriter()
void writeEntry(Entry entry) throws java.lang.Exception
entry
- The entry to write
java.lang.Exception
- if an error occurs.Entry readEntry() throws java.lang.Exception
java.lang.Exception
void initParser() throws java.lang.Exception
java.lang.Exception
- if an error occurs.void closeParser() throws java.lang.Exception
java.lang.Exception
- If an I/O error occursvoid flush() throws java.lang.Exception
java.lang.Exception
void setConfiguration(ParserConfig config)
config
- The new configuration valuejava.lang.String getParam(java.lang.String param)
param
- The parameter name
void setParam(java.lang.String param, java.lang.String value)
param
- The new param valuevalue
- The new param valuevoid setContext(java.lang.Object context)
context
- The new context valuejava.lang.Object getContext()
void registerScriptBeans(ScriptEngine se) throws java.lang.Exception
se
- The script engine
java.lang.Exception
boolean getDebug()
void setDebug(boolean debug)
debug
- The new debug valueboolean isDeltaSupported()
true
if this connector is able to perform delta
updates.
true
if delta updates are supported,
false
otherwisejava.lang.Object querySchema(java.lang.Object source) throws java.lang.Exception
source
- The object on which to discover schema
java.lang.Exception
- If an I/O error occurs
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |