org.codehaus.jackson.map.ser
Class ArraySerializers.CharArraySerializer
java.lang.Object
org.codehaus.jackson.map.JsonSerializer<char[]>
org.codehaus.jackson.map.ser.ArraySerializers.CharArraySerializer
- Enclosing class:
- ArraySerializers
public static final class ArraySerializers.CharArraySerializer
- extends JsonSerializer<char[]>
Character arrays are different from other integral number arrays in that
they are most likely to be textual data, and should be written as
Strings, not arrays of entries.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ArraySerializers.CharArraySerializer
public ArraySerializers.CharArraySerializer()
serialize
public void serialize(char[] value,
JsonGenerator jgen,
SerializerProvider provider)
throws java.io.IOException,
JsonGenerationException
- Description copied from class:
JsonSerializer
- Method that can be called to ask implementation to serialize
values of type this serializer handles.
- Specified by:
serialize in class JsonSerializer<char[]>
- Parameters:
value - Value to serialize; can not be null.jgen - Generator used to output resulting Json contentprovider - Provider that can be used to get serializers for
serializing Objects value contains, if any.
- Throws:
java.io.IOException
JsonGenerationException