Package com.alibaba.fastjson.serializer
Class MapSerializer
- java.lang.Object
-
- com.alibaba.fastjson.serializer.SerializeFilterable
-
- com.alibaba.fastjson.serializer.MapSerializer
-
- All Implemented Interfaces:
ObjectSerializer
public class MapSerializer extends SerializeFilterable implements ObjectSerializer
- Author:
- wenshao[szujobs@hotmail.com]
-
-
Field Summary
Fields Modifier and Type Field Description static MapSerializerinstance
-
Constructor Summary
Constructors Constructor Description MapSerializer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidwrite(JSONSerializer serializer, Object object, Object fieldName, Type fieldType, int features)fastjson invokes this call-back method during serialization when it encounters a field of the specified type.voidwrite(JSONSerializer serializer, Object object, Object fieldName, Type fieldType, int features, boolean unwrapped)-
Methods inherited from class com.alibaba.fastjson.serializer.SerializeFilterable
addFilter, apply, applyName, getAfterFilters, getBeforeFilters, getContextValueFilters, getLabelFilters, getNameFilters, getPropertyFilters, getPropertyPreFilters, getValueFilters
-
-
-
-
Field Detail
-
instance
public static MapSerializer instance
-
-
Method Detail
-
write
public void write(JSONSerializer serializer, Object object, Object fieldName, Type fieldType, int features) throws IOException
Description copied from interface:ObjectSerializerfastjson invokes this call-back method during serialization when it encounters a field of the specified type.- Specified by:
writein interfaceObjectSerializerobject- src the object that needs to be converted to Json.fieldName- parent object field namefieldType- parent object field typefeatures- parent object field serializer features- Throws:
IOException
-
write
public void write(JSONSerializer serializer, Object object, Object fieldName, Type fieldType, int features, boolean unwrapped) throws IOException
- Throws:
IOException
-
-