public class IPDRProcessor extends RecordProcessor implements org.xml.sax.ContentHandler
RecordProcessor.RecoveryContext| Modifier and Type | Field and Description |
|---|---|
protected java.lang.StringBuffer |
m_chars |
protected org.xml.sax.XMLReader |
m_saxParser |
protected IPDRSAXRecord |
m_saxRecord |
protected boolean |
m_syntaxCheck |
protected boolean |
m_useSaxParser
These members are used when parsing an XML document with a SAX parser
|
m_config, m_dataReceiver, m_debugLevel, m_iLogger, m_inputCount, m_logger, m_recovery, m_reporter, m_scratchDir| Constructor and Description |
|---|
IPDRProcessor(LoggerIfc logger,
ConfigIfc config,
java.io.File scratchDir)
Construct a new IPDRTransport to be used within the specified EINode.
|
| Modifier and Type | Method and Description |
|---|---|
void |
characters(char[] ch,
int start,
int length) |
void |
endDocument() |
void |
endElement(java.lang.String uri,
java.lang.String name,
java.lang.String qName) |
void |
endPrefixMapping(java.lang.String prefix) |
protected java.lang.String |
getCharacters() |
protected java.lang.String |
getModuleName() |
void |
ignorableWhitespace(char[] ch,
int start,
int length) |
void |
initialize()
This function is used to create and initialize the
Processor's components.
|
void |
initialize(java.lang.String useSaxParser) |
void |
processingInstruction(java.lang.String target,
java.lang.String data) |
boolean |
processRecords(IStreamSource dataSource)
Function called to process input data
|
boolean |
processRecordsUsingSax(IStreamSource dataSource)
Function called to process input data using a SAX parser
|
protected void |
renameInputFile(java.lang.String fileName)
This method will rename the input file with a ".bad" extension and will
move it to the node's "scratch/bad" directory.
|
void |
setDocumentLocator(org.xml.sax.Locator locator) |
void |
skippedEntity(java.lang.String name) |
void |
startDocument() |
void |
startElement(java.lang.String uri,
java.lang.String name,
java.lang.String qName,
org.xml.sax.Attributes atts) |
void |
startPrefixMapping(java.lang.String prefix,
java.lang.String uri) |
debug, error, getDataReceiver, processInput, setDataReceiver, setInputStatsMonitorprotected boolean m_useSaxParser
protected boolean m_syntaxCheck
protected org.xml.sax.XMLReader m_saxParser
protected java.lang.StringBuffer m_chars
protected IPDRSAXRecord m_saxRecord
protected java.lang.String getModuleName()
getModuleName in class RecordProcessorpublic void initialize()
throws java.lang.Exception
initialize in class RecordProcessorjava.lang.Exceptionpublic void initialize(java.lang.String useSaxParser)
throws java.lang.Exception
java.lang.Exceptionpublic boolean processRecords(IStreamSource dataSource)
processRecords in class RecordProcessorpublic boolean processRecordsUsingSax(IStreamSource dataSource)
protected void renameInputFile(java.lang.String fileName)
protected java.lang.String getCharacters()
public void characters(char[] ch,
int start,
int length)
characters in interface org.xml.sax.ContentHandlerpublic void endDocument()
endDocument in interface org.xml.sax.ContentHandlerpublic void endElement(java.lang.String uri,
java.lang.String name,
java.lang.String qName)
endElement in interface org.xml.sax.ContentHandlerpublic void endPrefixMapping(java.lang.String prefix)
throws org.xml.sax.SAXException
endPrefixMapping in interface org.xml.sax.ContentHandlerorg.xml.sax.SAXExceptionpublic void ignorableWhitespace(char[] ch,
int start,
int length)
throws org.xml.sax.SAXException
ignorableWhitespace in interface org.xml.sax.ContentHandlerorg.xml.sax.SAXExceptionpublic void processingInstruction(java.lang.String target,
java.lang.String data)
throws org.xml.sax.SAXException
processingInstruction in interface org.xml.sax.ContentHandlerorg.xml.sax.SAXExceptionpublic void setDocumentLocator(org.xml.sax.Locator locator)
setDocumentLocator in interface org.xml.sax.ContentHandlerpublic void skippedEntity(java.lang.String name)
throws org.xml.sax.SAXException
skippedEntity in interface org.xml.sax.ContentHandlerorg.xml.sax.SAXExceptionpublic void startDocument()
startDocument in interface org.xml.sax.ContentHandlerpublic void startElement(java.lang.String uri,
java.lang.String name,
java.lang.String qName,
org.xml.sax.Attributes atts)
startElement in interface org.xml.sax.ContentHandlerpublic void startPrefixMapping(java.lang.String prefix,
java.lang.String uri)
throws org.xml.sax.SAXException
startPrefixMapping in interface org.xml.sax.ContentHandlerorg.xml.sax.SAXException