@Component
public class XmlUtilities
extends java.lang.Object
| Constructor and Description |
|---|
XmlUtilities(@NotNull javax.xml.parsers.DocumentBuilder documentBuilder) |
| Modifier and Type | Method and Description |
|---|---|
@NotNull org.w3c.dom.Document |
getXml(@NotNull java.io.File manifest)
Reads the file into a
Document and Node.normalize() it. |
@NotNull org.w3c.dom.Document |
getXml(@NotNull java.io.InputStream manifest)
Reads the inputstream into a
Document and Node.normalize() it. |
@NotNull org.w3c.dom.Document |
getXml(@NotNull java.lang.String string)
Reads the string into a
Document and Node.normalize() it. |
@Contract(pure=true)
public XmlUtilities(@NotNull
@NotNull javax.xml.parsers.DocumentBuilder documentBuilder)
@NotNull
public @NotNull org.w3c.dom.Document getXml(@NotNull
@NotNull java.io.File manifest)
throws javax.xml.parsers.ParserConfigurationException,
java.io.IOException,
org.xml.sax.SAXException
Document and Node.normalize() it.manifest - The xml-file to parse into a Document.javax.xml.parsers.ParserConfigurationException - indicates a serious configuration error.java.io.IOException - if any IO errors occur.org.xml.sax.SAXException - if any parse errors occur.@NotNull
public @NotNull org.w3c.dom.Document getXml(@NotNull
@NotNull java.lang.String string)
throws javax.xml.parsers.ParserConfigurationException,
java.io.IOException,
org.xml.sax.SAXException
Document and Node.normalize() it.string - The xml-string to parse into a Document.javax.xml.parsers.ParserConfigurationException - indicates a serious configuration error.java.io.IOException - if any IO errors occur.org.xml.sax.SAXException - if any parse errors occur.@NotNull
public @NotNull org.w3c.dom.Document getXml(@NotNull
@NotNull java.io.InputStream manifest)
throws javax.xml.parsers.ParserConfigurationException,
java.io.IOException,
org.xml.sax.SAXException
Document and Node.normalize() it.manifest - The xml-inputstream to parse into a Document.javax.xml.parsers.ParserConfigurationException - indicates a serious configuration error.java.io.IOException - if any IO errors occur.org.xml.sax.SAXException - if any parse errors occur.