Class XmlUtils
java.lang.Object
jdk.jpackage.internal.util.XmlUtils
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic void
createXml
(Path dstFile, XmlConsumer xmlConsumer) static DocumentBuilder
static DocumentBuilderFactory
static void
mergeXmls
(XMLStreamWriter xml, Collection<Source> sources) queryNodes
(Node xml, XPath xPath, String xpathExpr) toStream
(NamedNodeMap nodes) static XmlConsumer
toXmlConsumer
(XmlUtils.XmlConsumerNoArg xmlConsumer)
-
Constructor Details
-
XmlUtils
public XmlUtils()
-
-
Method Details
-
toXmlConsumer
-
createXml
- Throws:
IOException
-
mergeXmls
public static void mergeXmls(XMLStreamWriter xml, Collection<Source> sources) throws XMLStreamException, IOException - Throws:
XMLStreamException
IOException
-
initDocumentBuilder
-
initDocumentBuilderFactory
-
queryNodes
public static Stream<Node> queryNodes(Node xml, XPath xPath, String xpathExpr) throws XPathExpressionException - Throws:
XPathExpressionException
-
toStream
-
toStream
-