|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.taglibs.standard.util.XmlUtil
public class XmlUtil
Utilities for working with JAXP and SAX.
Nested Class Summary | |
---|---|
static class |
XmlUtil.JstlEntityResolver
JSTL-specific implementation of EntityResolver, used by parsers. |
static class |
XmlUtil.JstlUriResolver
JSTL-specific implementation of URIResolver, used by transformers. |
Constructor Summary | |
---|---|
XmlUtil()
|
Method Summary | |
---|---|
static DocumentBuilder |
newDocumentBuilder()
Create a new DocumentBuilder configured for namespaces but not validating. |
static Document |
newEmptyDocument()
Create a new empty document. |
static InputSource |
newInputSource(Reader reader,
String systemId)
Create an InputSource from a Reader. |
static SAXSource |
newSAXSource(Reader reader,
String systemId,
XmlUtil.JstlEntityResolver entityResolver)
Create a SAXSource from a Reader. |
static Transformer |
newTransformer(Source source)
Create a new Transformer from an XSLT. |
static TransformerHandler |
newTransformerHandler()
Create a new TransformerHandler. |
static XMLReader |
newXMLReader(XmlUtil.JstlEntityResolver entityResolver)
Create an XMLReader that resolves entities using JSTL semantics. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public XmlUtil()
Method Detail |
---|
public static Document newEmptyDocument()
public static DocumentBuilder newDocumentBuilder()
public static TransformerHandler newTransformerHandler() throws TransformerConfigurationException
TransformerConfigurationException
public static Transformer newTransformer(Source source) throws TransformerConfigurationException
source
- the source of the XSLT.
TransformerConfigurationException
- if there was a problem creating the Transformer from the XSLTpublic static InputSource newInputSource(Reader reader, String systemId)
reader
- the source of the XMLsystemId
- the system id
public static XMLReader newXMLReader(XmlUtil.JstlEntityResolver entityResolver) throws ParserConfigurationException, SAXException
entityResolver
- for resolving using JSTL semantics
ParserConfigurationException
- if there was a configuration problem creating the reader
SAXException
- if there was a problem creating the readerpublic static SAXSource newSAXSource(Reader reader, String systemId, XmlUtil.JstlEntityResolver entityResolver) throws ParserConfigurationException, SAXException
reader
- the source of the XMLsystemId
- the system identityResolver
- for resolving using JSTL semamtics
ParserConfigurationException
- if there was a configuration problem creating the source
SAXException
- if there was a problem creating the source
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |