Java tutorial
package com.fasterxml.jackson.databind.ser.std; import com.fasterxml.jackson.core.JsonGenerator; import com.fasterxml.jackson.databind.SerializerProvider; import com.fasterxml.jackson.databind.annotation.JacksonStdImpl; import com.fasterxml.jackson.databind.jsontype.TypeSerializer; @JacksonStdImpl public class ToStringSerializer extends StdSerializer<Object> { public static final ToStringSerializer instance = new ToStringSerializer(); public ToStringSerializer() { super(Object.class); } public boolean isEmpty(Object paramObject) { if (paramObject == null) ; String str; do { return true; str = paramObject.toString(); } while ((str == null) || (str.length() == 0)); return false; } public void serialize(Object paramObject, JsonGenerator paramJsonGenerator, SerializerProvider paramSerializerProvider) { paramJsonGenerator.writeString(paramObject.toString()); } public void serializeWithType(Object paramObject, JsonGenerator paramJsonGenerator, SerializerProvider paramSerializerProvider, TypeSerializer paramTypeSerializer) { paramTypeSerializer.writeTypePrefixForScalar(paramObject, paramJsonGenerator); serialize(paramObject, paramJsonGenerator, paramSerializerProvider); paramTypeSerializer.writeTypeSuffixForScalar(paramObject, paramJsonGenerator); } } /* Location: /Users/dantheman/src/fffffffffattttt/basis/classes_dex2jar.jar * Qualified Name: com.fasterxml.jackson.databind.ser.std.ToStringSerializer * JD-Core Version: 0.6.2 */