Package org.nmap4j.parser.util
Class NMapXmlObsfucator
java.lang.Object
org.xml.sax.helpers.DefaultHandler
org.nmap4j.parser.util.NMapXmlObsfucator
- All Implemented Interfaces:
ContentHandler
,DTDHandler
,EntityResolver
,ErrorHandler
This class is an implementation of the SAX parser's DefaultHandler which
basically receive's notifications of nodes from the SAX parser as nodes
are encountered.
This implementation serves the specific purpose of obsfucating the IP address and hostname values in the XML output of NMap.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
void
endElement
(String uri, String localName, String qName) static void
void
void
startElement
(String uri, String localName, String qName, Attributes attributes) Methods inherited from class org.xml.sax.helpers.DefaultHandler
characters, 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
-
NMapXmlObsfucator
public NMapXmlObsfucator()
-
-
Method Details
-
main
-
endDocument
- Specified by:
endDocument
in interfaceContentHandler
- Overrides:
endDocument
in classDefaultHandler
- Throws:
SAXException
-
endElement
- Specified by:
endElement
in interfaceContentHandler
- Overrides:
endElement
in classDefaultHandler
- Throws:
SAXException
-
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
-