|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.foxinmy.weixin4j.xml.XmlStream
public final class XmlStream
XML 处理
| Constructor Summary | |
|---|---|
XmlStream()
|
|
| Method Summary | ||
|---|---|---|
static
|
fromXML(InputStream content,
Class<T> clazz)
Xml2Bean |
|
static
|
fromXML(String content,
Class<T> clazz)
Xml2Bean |
|
static String |
map2xml(com.alibaba.fastjson.JSONObject json)
map2xml |
|
static String |
map2xml(Map<String,String> map)
map2xml |
|
static String |
toXML(Object object)
Bean2Xml |
|
static
|
toXML(T t,
OutputStream os)
Bean2Xml |
|
static Map<String,String> |
xml2map(String content)
xml2map |
|
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public XmlStream()
| Method Detail |
|---|
public static <T> T fromXML(InputStream content,
Class<T> clazz)
content - xml内容clazz - bean类型
public static <T> T fromXML(String content,
Class<T> clazz)
content - xml内容clazz - bean类型
public static String map2xml(Map<String,String> map)
map - value无嵌套的map
public static String map2xml(com.alibaba.fastjson.JSONObject json)
json - value无嵌套的json
public static Map<String,String> xml2map(String content)
content - 无嵌套节点的xml内容
public static String toXML(Object object)
object - bean对象
public static <T> void toXML(T t,
OutputStream os)
t - bean对象os - 输出流
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||