Package org.nmap4j.parser
Class NMapXmlHandler
java.lang.Object
org.xml.sax.helpers.DefaultHandler
org.nmap4j.parser.NMapXmlHandler
- All Implemented Interfaces:
ContentHandler
,DTDHandler
,EntityResolver
,ErrorHandler
This class is the implementation of the DefaultHandler and receives
notifications from the SAX parser when nodes are parsed.
From the NMap4J API standpoint, there should be little reason for you to hook directly into this class (though you can if you want to).
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
addListener
(NMap4JParserEventListener listener) void
characters
(char[] ch, int start, int length) void
void
endElement
(String uri, String localName, String qName) long
static void
removeListener
(NMap4JParserEventListener listener) void
void
startElement
(String uri, String localName, String qName, Attributes attributes) Methods inherited from class org.xml.sax.helpers.DefaultHandler
endPrefixMapping, error, fatalError, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, setDocumentLocator, skippedEntity, startPrefixMapping, unparsedEntityDecl, warning
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
-
Constructor Details
-
NMapXmlHandler
-
-
Method Details
-
addListener
-
removeListener
-
startDocument
- Specified by:
startDocument
in interfaceContentHandler
- Overrides:
startDocument
in classDefaultHandler
- Throws:
SAXException
-
startElement
public void startElement(String uri, String localName, String qName, Attributes attributes) throws SAXException - Specified by:
startElement
in interfaceContentHandler
- Overrides:
startElement
in classDefaultHandler
- Throws:
SAXException
-
characters
- Specified by:
characters
in interfaceContentHandler
- Overrides:
characters
in classDefaultHandler
- Throws:
SAXException
-
endElement
- Specified by:
endElement
in interfaceContentHandler
- Overrides:
endElement
in classDefaultHandler
- Throws:
SAXException
-
endDocument
- Specified by:
endDocument
in interfaceContentHandler
- Overrides:
endDocument
in classDefaultHandler
- Throws:
SAXException
-
getExecTime
public long getExecTime()
-