|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ibm.di.parser.ParserImpl
com.ibm.di.parser.XMLParser
public class XMLParser
A class reading and writing Entries in XML format.
Field Summary | |
---|---|
NodeList |
children
|
int |
curindex
|
DocumentBuilder |
db
|
String |
entrytag
|
Document |
inputDoc
If we are reading a document, inputDoc will be available as the xmldom object in JavaScript |
Document |
outputDoc
If we are writing a document, outputDoc will be available as the xmldom object in JavaScript |
Element |
toplevel
|
Element |
toplevelInput
|
boolean |
useCData
|
String |
valuetag
|
Fields inherited from class com.ibm.di.parser.ParserImpl |
---|
_debug, myConfiguration |
Fields inherited from interface com.ibm.di.server.CheckpointRestartInterface |
---|
RESTART_AFTER, RESTART_BEFORE, RESTART_IN |
Constructor Summary | |
---|---|
XMLParser()
|
Method Summary | |
---|---|
void |
closeParser()
Close parser and deallocate resources. |
void |
error(SAXParseException exception)
|
void |
fatalError(SAXParseException exception)
|
void |
flush()
Flush any data to the output stream. |
Entry |
getCheckpointInformation()
Returns the state information for the parser. |
boolean |
getOmitXMLDeclaration()
|
String |
getVersion()
Return version information |
void |
initInput()
|
void |
initOutput()
|
void |
initParser()
Perform initialization of parser. |
boolean |
isCheckpointRestartEnabled(int mode)
Components that support checkpoint/restart for a specific mode must return TRUE from this method. |
void |
prepareForRestart(ALState state,
Entry restartInfo,
int restartPoint)
Notifies of a restart situation. |
Entry |
readEntry()
Constructs the next entry from the data structure read in initially. |
void |
registerScriptBeans(ScriptEngine se)
Registers inputDoc or outputDoc as the xmldom object in JavaScript |
void |
setOmitXMLDeclaration(boolean omit)
|
void |
warning(SAXParseException err)
|
void |
writeEntry(Entry entry)
Write an entry to the current output stream |
Methods inherited from class com.ibm.di.parser.ParserImpl |
---|
debug, debugMode, getClassInstance, getContext, getDebug, getInputStream, getOutputStream, getParam, getParser, getReader, getWriter, isDeltaSupported, logmsg, setConfiguration, setContext, setDebug, setInputStream, setInputStream, setInputStream, setOutputStream, setOutputStream, setParam, setParser |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public Document inputDoc
public Document outputDoc
public Element toplevel
public Element toplevelInput
public NodeList children
public int curindex
public boolean useCData
public String entrytag
public String valuetag
public DocumentBuilder db
Constructor Detail |
---|
public XMLParser()
Method Detail |
---|
public void registerScriptBeans(ScriptEngine se) throws Exception
registerScriptBeans
in interface ParserInterface
registerScriptBeans
in class ParserImpl
se
- The script engine
Exception
public void initParser() throws Exception
ParserImpl
initParser
in interface ParserInterface
initParser
in class ParserImpl
Exception
public void closeParser() throws Exception
ParserImpl
closeParser
in interface ParserInterface
closeParser
in class ParserImpl
Exception
public void flush() throws Exception
ParserImpl
flush
in interface ParserInterface
flush
in class ParserImpl
Exception
public void initOutput() throws Exception
Exception
public void initInput() throws Exception
Exception
public Entry readEntry() throws Exception
readEntry
in interface ParserInterface
Exception
public void writeEntry(Entry entry) throws Exception
ParserInterface
writeEntry
in interface ParserInterface
entry
- The entry to write
Exception
public void setOmitXMLDeclaration(boolean omit)
public boolean getOmitXMLDeclaration()
public void fatalError(SAXParseException exception)
fatalError
in interface ErrorHandler
public void error(SAXParseException exception) throws SAXException
error
in interface ErrorHandler
SAXException
public void warning(SAXParseException err) throws SAXException
warning
in interface ErrorHandler
SAXException
public boolean isCheckpointRestartEnabled(int mode)
isCheckpointRestartEnabled
in interface CheckpointRestartInterface
mode
- The mode the connector runs in
ServerConstants
public Entry getCheckpointInformation() throws Exception
getCheckpointInformation
in interface CheckpointRestartInterface
Exception
public void prepareForRestart(ALState state, Entry restartInfo, int restartPoint) throws Exception
prepareForRestart
in interface CheckpointRestartInterface
restartInfo
- The last entry object returned by the connector in the getCheckpointInformation methodstate
- The ALState object for the AssemblyLinerestartPoint
- The relative point where restarting is taking place (e.g. RESTART_BEFORE ...)
Exception
public String getVersion()
getVersion
in interface VersionInfoInterface
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |