JavaBeanSerializer (fastjson 1.1.26 API)

fastjson



com.alibaba.fastjson.serializer Class JavaBeanSerializer

java.lang.Object
  extended by com.alibaba.fastjson.serializer.JavaBeanSerializer
All Implemented Interfaces:
ObjectSerializer
Direct Known Subclasses:
ExceptionSerializer

public class JavaBeanSerializer
extends Object
implements ObjectSerializer

Author:
wenshao

Constructor Summary
 
Method Summary
 FieldSerializer
 FieldSerializer[]
 void
 void
 
Methods inherited from class java.lang.Object
 

Constructor Detail

JavaBeanSerializer

public JavaBeanSerializer(Class<?> clazz)

JavaBeanSerializer

public JavaBeanSerializer(Class<?> clazz,
                          String... aliasList)

JavaBeanSerializer

public JavaBeanSerializer(Class<?> clazz,
                          Map<String,String> aliasMap)
Method Detail

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.