Package com.sun.xml.ws.message
Class RootElementSniffer
- java.lang.Object
-
- org.xml.sax.helpers.DefaultHandler
-
- com.sun.xml.ws.message.RootElementSniffer
-
- All Implemented Interfaces:
ContentHandler,DTDHandler,EntityResolver,ErrorHandler
public final class RootElementSniffer extends DefaultHandler
Sniffs the root element name and its attributes from SAX events.- Author:
- Kohsuke Kawaguchi
-
-
Constructor Summary
Constructors Constructor Description RootElementSniffer()RootElementSniffer(boolean parseAttributes)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AttributesgetAttributes()StringgetLocalName()StringgetNsUri()voidstartElement(String uri, String localName, String qName, Attributes a)-
Methods inherited from class org.xml.sax.helpers.DefaultHandler
characters, endDocument, endElement, endPrefixMapping, error, fatalError, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, setDocumentLocator, skippedEntity, startDocument, startPrefixMapping, unparsedEntityDecl, warning
-
-
-
-
Method Detail
-
startElement
public void startElement(String uri, String localName, String qName, Attributes a) throws SAXException
- Specified by:
startElementin interfaceContentHandler- Overrides:
startElementin classDefaultHandler- Throws:
SAXException
-
getNsUri
public String getNsUri()
-
getLocalName
public String getLocalName()
-
getAttributes
public Attributes getAttributes()
-
-