Klasse DOMParser<D extends DOM>
java.lang.Object
org.jupnp.xml.DOMParser<D>
- Alle implementierten Schnittstellen:
- EntityResolver,- ErrorHandler
public abstract class DOMParser<D extends DOM>
extends Object
implements ErrorHandler, EntityResolver
Condensed API for parsing of XML into DOM with (optional) XML schema validation.
 
Provides many XML utility features, like pretty printing, escaping, or node visitor.
NOTE: This class is not thread-safe because JAXP factories are not thread-safe!
- Autor:
- Christian Bauer
- 
Verschachtelte Klassen - ÜbersichtVerschachtelte Klassen
- 
FeldübersichtFelder
- 
KonstruktorübersichtKonstruktoren
- 
MethodenübersichtModifizierer und TypMethodeBeschreibungstatic voidaccept(Node node, DOMParser.NodeVisitor visitor) protected abstract DcreateFactory(boolean validating) createTransformer(String method, int indent, boolean standalone) createXPath(NamespaceContext nsContext) createXPath(XPathFactory factory, NamespaceContext nsContext) voidstatic Stringstatic StringvoidgetXPathResult(DOMElement element, XPath xpath, String expr, QName result) getXPathResult(DOM dom, XPath xpath, String expr, QName result) getXPathResult(Node context, XPath xpath, String expr, QName result) booleanisIgnorableWSNode(Node node) parse(InputStream stream) parse(InputStream stream, boolean validate) parse(InputSource source, boolean validate) voidremoveIgnorableWSNodes(Element element) resolveEntity(String publicId, String systemId) static StringstripElements(String xml) protected ParserExceptionvoidvoidvoidvoidvoidvoidstatic Stringstatic String
- 
Felddetails- 
XML_SCHEMA_RESOURCE
- 
schemaSources
- 
schema
 
- 
- 
Konstruktordetails- 
DOMParserprotected DOMParser()
- 
DOMParser
 
- 
- 
Methodendetails- 
getSchema
- 
createDOM
- 
createFactory- Löst aus:
- ParserException
 
- 
createTransformerpublic Transformer createTransformer(String method, int indent, boolean standalone) throws ParserException - Löst aus:
- ParserException
 
- 
createDocument
- 
parse- Löst aus:
- ParserException
 
- 
parse- Löst aus:
- ParserException
 
- 
parse- Löst aus:
- ParserException
 
- 
parse- Löst aus:
- ParserException
 
- 
parse- Löst aus:
- ParserException
 
- 
parse- Löst aus:
- ParserException
 
- 
parse- Löst aus:
- ParserException
 
- 
parse- Löst aus:
- ParserException
 
- 
parse- Löst aus:
- ParserException
 
- 
validate- Löst aus:
- ParserException
 
- 
validate- Löst aus:
- ParserException
 
- 
validate- Löst aus:
- ParserException
 
- 
validate- Löst aus:
- ParserException
 
- 
validate- Löst aus:
- ParserException
 
- 
createXPathFactory
- 
createXPath
- 
createXPath
- 
getXPathResult
- 
getXPathResult
- 
getXPathResult
- 
print- Löst aus:
- ParserException
 
- 
print- Löst aus:
- ParserException
 
- 
print- Löst aus:
- ParserException
 
- 
print- Löst aus:
- ParserException
 
- 
print- Löst aus:
- ParserException
 
- 
print- Löst aus:
- ParserException
 
- 
print- Löst aus:
- ParserException
 
- 
printHTML- Löst aus:
- ParserException
 
- 
printHTMLpublic String printHTML(Document dom, int indent, boolean standalone, boolean doctype) throws ParserException - Löst aus:
- ParserException
 
- 
removeIgnorableWSNodes
- 
isIgnorableWSNode
- 
warning- Angegeben von:
- warningin Schnittstelle- ErrorHandler
- Löst aus:
- SAXException
 
- 
error- Angegeben von:
- errorin Schnittstelle- ErrorHandler
- Löst aus:
- SAXException
 
- 
fatalError- Angegeben von:
- fatalErrorin Schnittstelle- ErrorHandler
- Löst aus:
- SAXException
 
- 
unwrapException
- 
resolveEntity- Angegeben von:
- resolveEntityin Schnittstelle- EntityResolver
- Löst aus:
- SAXException
- IOException
 
- 
escape
- 
escape
- 
stripElements
- 
accept
- 
wrap
- 
wrap
 
-