com.alibaba.fastjson.serializer
Class JavaBeanSerializer
java.lang.Object
com.alibaba.fastjson.serializer.JavaBeanSerializer
- All Implemented Interfaces:
- ObjectSerializer
- Direct Known Subclasses:
- ExceptionSerializer
public class JavaBeanSerializer
- extends Object
- implements ObjectSerializer
- Author:
- wenshao
JavaBeanSerializer
public JavaBeanSerializer(Class<?> clazz)
JavaBeanSerializer
public JavaBeanSerializer(Class<?> clazz,
String... aliasList)
JavaBeanSerializer
public JavaBeanSerializer(Class<?> clazz,
Map<String,String> aliasMap)
getGetters
public FieldSerializer[] getGetters()
write
public void write(JSONSerializer serializer,
Object object,
Object fieldName,
Type fieldType)
throws IOException
- Specified by:
write
in interface ObjectSerializer
- Throws:
IOException
writeReference
public void writeReference(JSONSerializer serializer,
Object object)
createFieldSerializer
public FieldSerializer createFieldSerializer(FieldInfo fieldInfo)
Copyright © 2012
Alibaba Group. All Rights Reserved.