org.codehaus.jackson.map.ser
Class StdKeySerializer

java.lang.Object
  extended by org.codehaus.jackson.map.JsonSerializer<java.lang.Object>
      extended by org.codehaus.jackson.map.ser.StdKeySerializer

public final class StdKeySerializer
extends JsonSerializer<java.lang.Object>

Specialized serializer that can be used as the generic key serializer, when serializing Maps to Json Objects.


Constructor Summary
StdKeySerializer()
           
 
Method Summary
 void serialize(java.lang.Object value, JsonGenerator jgen, SerializerProvider provider)
          Method that can be called to ask implementation to serialize values of type this serializer handles.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StdKeySerializer

public StdKeySerializer()
Method Detail

serialize

public void serialize(java.lang.Object 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<java.lang.Object>
Parameters:
value - Value to serialize; can not be null.
jgen - Generator used to output resulting Json content
provider - Provider that can be used to get serializers for serializing Objects value contains, if any.
Throws:
java.io.IOException
JsonGenerationException