public class WebXmlTypeAwareParser extends org.xml.sax.helpers.DefaultHandler
| Modifier and Type | Field and Description |
|---|---|
protected WebXmlVersion |
version
The version that we think the XML data is.
|
| Constructor and Description |
|---|
WebXmlTypeAwareParser(InputStream theInput,
EntityResolver theEntityResolver)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
WebXmlVersion |
getVersion()
Get the version that was determined.
|
void |
notationDecl(String namespaceURI,
String sName,
String qName) |
WebXml |
parse()
Perform the parsing of the passed stream, and return a Web XML from the contents.
|
void |
startElement(String namespaceURI,
String sName,
String qName,
Attributes attrs) |
void |
unparsedEntityDecl(String arg0,
String arg1,
String arg2,
String arg3) |
characters, endDocument, endElement, endPrefixMapping, error, fatalError, ignorableWhitespace, processingInstruction, resolveEntity, setDocumentLocator, skippedEntity, startDocument, startPrefixMapping, warningprotected WebXmlVersion version
public WebXmlTypeAwareParser(InputStream theInput, EntityResolver theEntityResolver)
theInput - stream to read fromtheEntityResolver - entity resolver to usepublic WebXml parse() throws IOException, org.jdom.JDOMException
IOException - if there is a problem reading the streamorg.jdom.JDOMException - if there is an XML problempublic void notationDecl(String namespaceURI, String sName, String qName) throws SAXException
notationDecl in interface DTDHandlernotationDecl in class org.xml.sax.helpers.DefaultHandlerSAXExceptionpublic void unparsedEntityDecl(String arg0, String arg1, String arg2, String arg3) throws SAXException
unparsedEntityDecl in interface DTDHandlerunparsedEntityDecl in class org.xml.sax.helpers.DefaultHandlerSAXExceptionpublic void startElement(String namespaceURI, String sName, String qName, Attributes attrs) throws SAXException
startElement in interface ContentHandlerstartElement in class org.xml.sax.helpers.DefaultHandlerSAXExceptionpublic WebXmlVersion getVersion()
Copyright © 2004-2013 Codehaus. All Rights Reserved.