/QingTingFanBianYi/src/com/alibaba/fastjson/serializer/ByteArraySerializer.java
Java | 32 lines | 24 code | 4 blank | 4 comment | 3 complexity | 16426769734d88efa9a6ab170a2b8a0f MD5 | raw file
- package com.alibaba.fastjson.serializer;
- import java.io.IOException;
- import java.lang.reflect.Type;
- public class ByteArraySerializer
- implements ObjectSerializer
- {
- public static ByteArraySerializer instance = new ByteArraySerializer();
- public final void write(JSONSerializer paramJSONSerializer, Object paramObject1, Object paramObject2, Type paramType)
- throws IOException
- {
- paramJSONSerializer = paramJSONSerializer.getWriter();
- if (paramObject1 == null)
- {
- if (paramJSONSerializer.isEnabled(SerializerFeature.WriteNullListAsEmpty))
- {
- paramJSONSerializer.write("[]");
- return;
- }
- paramJSONSerializer.writeNull();
- return;
- }
- paramJSONSerializer.writeByteArray((byte[])paramObject1);
- }
- }
- /* Location: C:\Users\User\dex2jar-2.0\dex\qting\classes-dex2jar.jar
- * Qualified Name: com.alibaba.fastjson.serializer.ByteArraySerializer
- * JD-Core Version: 0.6.2
- */