public class XmlBeanUtil
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
TOOL_CASTOR |
static java.lang.String |
TOOL_JDK |
static java.lang.String |
ToolKid |
static int |
XmlPIChars |
| Constructor and Description |
|---|
XmlBeanUtil() |
| Modifier and Type | Method and Description |
|---|---|
static java.lang.Object |
toObject(java.io.InputStream in)
Convert a Xml string in the stram to an object
|
static java.lang.Object |
toObject(java.io.InputStream in,
java.lang.Class<?> klass)
Convert a Xml string in the stram to an object of the class
|
static java.lang.Object |
toObject(java.lang.String xml)
Convert the Xml string to an object
|
static java.lang.Object |
toObject(java.lang.String xml,
java.lang.Class<?> klass)
Convert the Xml string to an object of the class
|
static java.lang.String |
toXmlString(java.lang.Object obj)
Convert the object to an Xml string
|
public static final java.lang.String TOOL_JDK
public static final java.lang.String TOOL_CASTOR
public static java.lang.String ToolKid
public static int XmlPIChars
public static java.lang.String toXmlString(java.lang.Object obj)
obj - the input objectpublic static java.lang.Object toObject(java.lang.String xml)
xml - the input xml stringpublic static java.lang.Object toObject(java.lang.String xml,
java.lang.Class<?> klass)
xml - the input xml stringklass - the object classpublic static java.lang.Object toObject(java.io.InputStream in)
in - the input stream containing a xml stringpublic static java.lang.Object toObject(java.io.InputStream in,
java.lang.Class<?> klass)
in - the input stream containing a xml stringklass - the object class