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 StringBufferprotected XMLReaderprotected IPDRSAXRecordprotected booleanprotected booleanThese 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 TypeMethodDescriptionvoidcharacters(char[] ch, int start, int length) voidvoidendElement(String uri, String name, String qName) voidendPrefixMapping(String prefix) protected Stringprotected StringvoidignorableWhitespace(char[] ch, int start, int length) voidThis function is used to create and initialize the Processor's components.voidinitialize(String useSaxParser) voidprocessingInstruction(String target, String data) booleanprocessRecords(IStreamSource dataSource) Function called to process input databooleanprocessRecordsUsingSax(IStreamSource dataSource) Function called to process input data using a SAX parserprotected voidrenameInputFile(String fileName) This method will rename the input file with a ".bad" extension and will move it to the node's "scratch/bad" directory.voidsetDocumentLocator(Locator locator) voidskippedEntity(String name) voidvoidstartElement(String uri, String name, String qName, Attributes atts) voidstartPrefixMapping(String prefix, String uri) Methods inherited from class com.nt.udc.node.util.RecordProcessor
debug, error, getDataReceiver, processInput, setDataReceiver, setInputStatsMonitorMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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:
getModuleNamein classRecordProcessor
-
initialize
This function is used to create and initialize the Processor's components.- Specified by:
initializein classRecordProcessor- Throws:
Exception
-
initialize
- Throws:
Exception
-
processRecords
Function called to process input data- Specified by:
processRecordsin 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:
charactersin interfaceContentHandler
-
endDocument
public void endDocument()- Specified by:
endDocumentin interfaceContentHandler
-
endElement
- Specified by:
endElementin interfaceContentHandler
-
endPrefixMapping
- Specified by:
endPrefixMappingin interfaceContentHandler- Throws:
SAXException
-
ignorableWhitespace
- Specified by:
ignorableWhitespacein interfaceContentHandler- Throws:
SAXException
-
processingInstruction
- Specified by:
processingInstructionin interfaceContentHandler- Throws:
SAXException
-
setDocumentLocator
- Specified by:
setDocumentLocatorin interfaceContentHandler
-
skippedEntity
- Specified by:
skippedEntityin interfaceContentHandler- Throws:
SAXException
-
startDocument
public void startDocument()- Specified by:
startDocumentin interfaceContentHandler
-
startElement
- Specified by:
startElementin interfaceContentHandler
-
startPrefixMapping
- Specified by:
startPrefixMappingin interfaceContentHandler- Throws:
SAXException
-