Class XmlUtils
java.lang.Object
net.thevpc.common.prs.xml.XmlUtils
- Author:
- Taha BEN SALAH (taha.bensalah@gmail.com) %creationtime 13 juil. 2006 22:14:21
-
Method Summary
Modifier and TypeMethodDescriptionstatic voidobjectToXml(Object o, File file, ClassLoader classLoader, Map<Class, XmlSerializationDelegate> delegates) static voidobjectToXml(Object o, OutputStream outputStream, ClassLoader classLoader, Map<Class, XmlSerializationDelegate> delegates) static voidobjectToXml(Object o, OutputStream outputStream, ClassLoader classLoader, Map<Class, XmlSerializationDelegate> delegates, boolean closeStream) static voidplainTextToXML(InputStream in, Writer out) static StringplainTextToXML(String str) static StringtagToString(String name, Map props, boolean startSlash, boolean endSlash) static ObjectxmlToObject(File file, ClassLoader classLoader, Map<Class, XmlSerializationDelegate> delegates) static ObjectxmlToObject(InputStream inputStream, ClassLoader classLoader, Map<Class, XmlSerializationDelegate> delegates) static voidxmlToPlainText(InputStream in, Writer out) static StringxmlToPlainText(String str)
-
Method Details
-
plainTextToXML
-
plainTextToXML
- Throws:
IOException
-
xmlToPlainText
- Throws:
IOException
-
xmlToPlainText
-
xmlToObject
public static Object xmlToObject(File file, ClassLoader classLoader, Map<Class, XmlSerializationDelegate> delegates) throws IOException - Throws:
IOException
-
xmlToObject
public static Object xmlToObject(InputStream inputStream, ClassLoader classLoader, Map<Class, XmlSerializationDelegate> delegates) throws IOException - Throws:
IOException
-
objectToXml
public static void objectToXml(Object o, File file, ClassLoader classLoader, Map<Class, XmlSerializationDelegate> delegates) throws IOException - Throws:
IOException
-
objectToXml
public static void objectToXml(Object o, OutputStream outputStream, ClassLoader classLoader, Map<Class, XmlSerializationDelegate> delegates) throws IOException - Throws:
IOException
-
objectToXml
public static void objectToXml(Object o, OutputStream outputStream, ClassLoader classLoader, Map<Class, XmlSerializationDelegate> delegates, boolean closeStream) throws IOException - Throws:
IOException
-
tagToString
-