public class XmlUtils extends Object
| Constructor and Description |
|---|
XmlUtils() |
| Modifier and Type | Method and Description |
|---|---|
static Document |
createFromString(String text) |
static Document |
loadFromStream(InputStream inputStream) |
static Document |
openFile(File file) |
static Document |
openUrl(String location) |
static String |
toString(Node node) |
static void |
toText(Node node,
OutputStream out) |
static <T> T |
unmarshallXml(Class<T> clazz,
InputStream in) |
public static Document createFromString(String text) throws Exception
Exceptionpublic static void toText(Node node, OutputStream out) throws TransformerFactoryConfigurationError, TransformerException
public static Document loadFromStream(InputStream inputStream) throws Exception
Exceptionpublic static <T> T unmarshallXml(Class<T> clazz, InputStream in) throws JAXBException, UnsupportedEncodingException
Copyright © 2015. All rights reserved.