com.taobao.api.internal.util.XmlWriter Maven / Gradle / Ivy
package com.taobao.api.internal.util;
import java.beans.BeanInfo;
import java.beans.Introspector;
import java.beans.PropertyDescriptor;
import java.lang.reflect.Array;
import java.lang.reflect.Field;
import java.lang.reflect.Method;
import java.util.Collection;
import java.util.Date;
import java.util.Iterator;
import java.util.Map;
import java.util.Set;
import java.util.Stack;
/**
* 对象转XML类。
*
* @author fengsheng
* @since Jan 28, 2016
*/
public class XmlWriter {
private StringBuffer buf = new StringBuffer();
private Stack