Package com.nt.udc.ei.node.ipdr
Class IPDRProcessor
java.lang.Object
com.nt.udc.node.util.RecordProcessor
com.nt.udc.ei.node.ipdr.IPDRProcessor
- All Implemented Interfaces:
ContentHandler
This class is used to process IPDR records.
- Since:
- JDK1.2.2
-
Nested Class Summary
Nested classes/interfaces inherited from class com.nt.udc.node.util.RecordProcessor
RecordProcessor.RecoveryContext
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected StringBuffer
protected XMLReader
protected IPDRSAXRecord
protected boolean
protected boolean
These members are used when parsing an XML document with a SAX parserFields inherited from class com.nt.udc.node.util.RecordProcessor
m_config, m_dataReceiver, m_debugLevel, m_iLogger, m_inputCount, m_logger, m_recovery, m_reporter, m_scratchDir
-
Constructor Summary
ConstructorsConstructorDescriptionIPDRProcessor
(LoggerIfc logger, ConfigIfc config, File scratchDir) Construct a new IPDRTransport to be used within the specified EINode. -
Method Summary
Modifier and TypeMethodDescriptionvoid
characters
(char[] ch, int start, int length) void
void
endElement
(String uri, String name, String qName) void
endPrefixMapping
(String prefix) protected String
protected String
void
ignorableWhitespace
(char[] ch, int start, int length) void
This function is used to create and initialize the Processor's components.void
initialize
(String useSaxParser) void
processingInstruction
(String target, String data) boolean
processRecords
(IStreamSource dataSource) Function called to process input databoolean
processRecordsUsingSax
(IStreamSource dataSource) Function called to process input data using a SAX parserprotected void
renameInputFile
(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
(Locator locator) void
skippedEntity
(String name) void
void
startElement
(String uri, String name, String qName, Attributes atts) void
startPrefixMapping
(String prefix, String uri) Methods inherited from class com.nt.udc.node.util.RecordProcessor
debug, error, getDataReceiver, processInput, setDataReceiver, setInputStatsMonitor
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.xml.sax.ContentHandler
declaration
-
Field Details
-
m_useSaxParser
protected boolean m_useSaxParserThese members are used when parsing an XML document with a SAX parser -
m_syntaxCheck
protected boolean m_syntaxCheck -
m_saxParser
-
m_chars
-
m_saxRecord
-
-
Constructor Details
-
IPDRProcessor
Construct a new IPDRTransport to be used within the specified EINode.- Throws:
Exception
-
-
Method Details
-
getModuleName
- Specified by:
getModuleName
in classRecordProcessor
-
initialize
This function is used to create and initialize the Processor's components.- Specified by:
initialize
in classRecordProcessor
- Throws:
Exception
-
initialize
- Throws:
Exception
-
processRecords
Function called to process input data- Specified by:
processRecords
in classRecordProcessor
- Returns:
- true if successful, false otherwise
-
processRecordsUsingSax
Function called to process input data using a SAX parser- Returns:
- true if successful, false otherwise
-
renameInputFile
This method will rename the input file with a ".bad" extension and will move it to the node's "scratch/bad" directory. NOTE: The code was taken from the processRecords() method. At some point the code in the processRecords() method should be changed to call this method instead. The change is not currently being made at this time as there is not enough time to do the regression testing that would be required for all affected nodes. -
getCharacters
-
characters
public void characters(char[] ch, int start, int length) - Specified by:
characters
in interfaceContentHandler
-
endDocument
public void endDocument()- Specified by:
endDocument
in interfaceContentHandler
-
endElement
- Specified by:
endElement
in interfaceContentHandler
-
endPrefixMapping
- Specified by:
endPrefixMapping
in interfaceContentHandler
- Throws:
SAXException
-
ignorableWhitespace
- Specified by:
ignorableWhitespace
in interfaceContentHandler
- Throws:
SAXException
-
processingInstruction
- Specified by:
processingInstruction
in interfaceContentHandler
- Throws:
SAXException
-
setDocumentLocator
- Specified by:
setDocumentLocator
in interfaceContentHandler
-
skippedEntity
- Specified by:
skippedEntity
in interfaceContentHandler
- Throws:
SAXException
-
startDocument
public void startDocument()- Specified by:
startDocument
in interfaceContentHandler
-
startElement
- Specified by:
startElement
in interfaceContentHandler
-
startPrefixMapping
- Specified by:
startPrefixMapping
in interfaceContentHandler
- Throws:
SAXException
-