Package net.jodah.xsylum
Class Xsylum
- java.lang.Object
-
- net.jodah.xsylum.Xsylum
-
public final class Xsylum extends Object
XML parsing for the sane.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static XmlDocument
documentFor(byte[] xml)
Returns an XmlDocument for thexml
.static XmlDocument
documentFor(File file)
Returns an XmlDocument for the xml read from thefile
.static XmlDocument
documentFor(InputStream inputStream)
Returns an XmlDocument for the xml read from theinputStream
.static XmlDocument
documentFor(String xml)
Returns an XmlDocument for thexml
.static XmlElement
elementFor(byte[] xml)
Returns an XmlDocument for thexml
.static XmlElement
elementFor(File file)
Returns an XmlElement representing the document element for the xml read from thefile
.static XmlElement
elementFor(InputStream inputStream)
Returns an XmlElement representing the document element for the xml read from theinputStream
.static XmlElement
elementFor(String xml)
Returns an XmlElement representing the document element for thexml
.
-
-
-
Method Detail
-
documentFor
public static XmlDocument documentFor(byte[] xml) throws XsylumException
Returns an XmlDocument for thexml
.- Throws:
XsylumException
-
documentFor
public static XmlDocument documentFor(File file) throws XsylumException
Returns an XmlDocument for the xml read from thefile
.- Throws:
XsylumException
-
documentFor
public static XmlDocument documentFor(InputStream inputStream) throws XsylumException
Returns an XmlDocument for the xml read from theinputStream
.- Throws:
XsylumException
-
documentFor
public static XmlDocument documentFor(String xml) throws XsylumException
Returns an XmlDocument for thexml
.- Throws:
XsylumException
-
elementFor
public static XmlElement elementFor(byte[] xml) throws XsylumException
Returns an XmlDocument for thexml
.- Throws:
XsylumException
-
elementFor
public static XmlElement elementFor(File file) throws XsylumException, IOException
Returns an XmlElement representing the document element for the xml read from thefile
.- Throws:
XsylumException
IOException
-
elementFor
public static XmlElement elementFor(InputStream inputStream) throws XsylumException
Returns an XmlElement representing the document element for the xml read from theinputStream
.- Throws:
XsylumException
-
elementFor
public static XmlElement elementFor(String xml) throws XsylumException
Returns an XmlElement representing the document element for thexml
.- Throws:
XsylumException
-
-