Class XmlUtilities
-
- All Implemented Interfaces:
public final class XmlUtilitiesCommonly used XML utilities.
documentBuilderFactory — used for parsing XML-files.
Griefed
-
-
Constructor Summary
Constructors Constructor Description XmlUtilities(DocumentBuilderFactory documentBuilderFactory)
-
Method Summary
Modifier and Type Method Description final DocumentgetXml(File manifest)Reads the file into a Document and Document.normalize it. final DocumentgetXml(String string)Reads the string into a Document and Document.normalize it. final DocumentgetXml(InputStream manifest)Reads the input-stream into a Document and Document.normalize it. -
-
Constructor Detail
-
XmlUtilities
XmlUtilities(DocumentBuilderFactory documentBuilderFactory)
-
-
Method Detail
-
getXml
final Document getXml(File manifest)
Reads the file into a Document and Document.normalize it.
manifest — The xml-file to parse into a Document. Returns the parsed and normalized document.
-
getXml
final Document getXml(String string)
Reads the string into a Document and Document.normalize it.
string — The xml-string to parse into a Document. Returns the parsed and normalized document.
-
getXml
final Document getXml(InputStream manifest)
Reads the input-stream into a Document and Document.normalize it.
manifest — The xml-input-stream to parse into a Document. Returns the parsed and normalized document.
-
-
-
-