|
|||||||||||
| 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. |
Object |
getContext()
Gets the context attribute of the ParserInterface object. |
boolean |
getDebug()
Gets the debug attribute of the ParserInterface object. |
String |
getParam(String param)
Gets the param attribute of the ParserInterface object. |
ParserInterface |
getParser()
Gets the parser attribute of the ParserInterface object. |
BufferedReader |
getReader()
Gets the reader attribute of the ParserInterface object. |
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. |
Object |
querySchema(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(Object context)
Sets the context attribute of the ParserInterface object. |
void |
setDebug(boolean debug)
Sets the debug attribute of the ParserInterface object. |
void |
setInputStream(InputStream is)
Sets the inputStream attribute of the ParserInterface object. |
void |
setInputStream(Reader is)
Sets the inputStream attribute of the ParserInterface object. |
void |
setInputStream(String is)
Sets the inputStream attribute of the ParserInterface object. |
void |
setOutputStream(OutputStream os)
Sets the outputStream attribute of the ParserInterface object. |
void |
setOutputStream(Writer os)
Sets the outputStream attribute of the ParserInterface object. |
void |
setParam(String param,
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(InputStream is)
is - The new inputStream valuevoid setOutputStream(OutputStream os)
os - The new outputStream valuevoid setInputStream(String is)
is - The new inputStream valuevoid setInputStream(Reader is)
is - The new inputStream valuevoid setOutputStream(Writer os)
os - The new outputStream valuevoid setParser(ParserInterface parser)
parser - The new parser valueParserInterface getParser()
BufferedReader getReader()
BufferedWriter getWriter()
void writeEntry(Entry entry)
throws Exception
entry - The entry to write
Exception - if an error occurs.
Entry readEntry()
throws Exception
Exception
void initParser()
throws Exception
Exception - if an error occurs.
void closeParser()
throws Exception
Exception - If an I/O error occurs
void flush()
throws Exception
Exceptionvoid setConfiguration(ParserConfig config)
config - The new configuration valueString getParam(String param)
param - The parameter name
void setParam(String param,
String value)
param - The new param valuevalue - The new param valuevoid setContext(Object context)
context - The new context valueObject getContext()
void registerScriptBeans(ScriptEngine se)
throws Exception
se - The script engine
Exceptionboolean 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 otherwise
Object querySchema(Object source)
throws Exception
source - The object on which to discover schema
Exception - If an I/O error occurs
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||