Class XmlUtils
java.lang.Object
jdk.jpackage.internal.util.XmlUtils
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidconcatXml(XMLStreamWriter xml, Iterable<? extends Source> sources) static voidconcatXml(XMLStreamWriter xml, Source... sources) static voidcreateXml(Path dstFile, XmlConsumer xmlConsumer) static voidcreateXml(DOMResult dom, XmlConsumer xmlConsumer) static DOMResultcreateXml(XmlConsumer xmlConsumer) static voidcreateXml(Node root, XmlConsumer xmlConsumer) static DocumentBuilderstatic DocumentBuilderFactoryqueryNodes(Node xml, XPath xPath, String xpathExpr) toStream(NamedNodeMap nodes) static XmlConsumertoXmlConsumer(XmlUtils.XmlConsumerNoArg xmlConsumer)
-
Constructor Details
-
XmlUtils
public XmlUtils()
-
-
Method Details
-
toXmlConsumer
-
createXml
- Throws:
IOException
-
createXml
- Throws:
IOException
-
createXml
- Throws:
IOException
-
createXml
- Throws:
IOException
-
concatXml
public static void concatXml(XMLStreamWriter xml, Source... sources) throws XMLStreamException, IOException - Throws:
XMLStreamExceptionIOException
-
concatXml
public static void concatXml(XMLStreamWriter xml, Iterable<? extends Source> sources) throws XMLStreamException, IOException - Throws:
XMLStreamExceptionIOException
-
initDocumentBuilder
-
initDocumentBuilderFactory
-
queryNodes
public static Stream<Node> queryNodes(Node xml, XPath xPath, String xpathExpr) throws XPathExpressionException - Throws:
XPathExpressionException
-
toStream
-
toStream
-