com.fasterxml.jackson.datatype.joda.ser
Class IntervalSerializer

java.lang.Object
  extended by com.fasterxml.jackson.databind.JsonSerializer<T>
      extended by com.fasterxml.jackson.databind.ser.std.StdSerializer<T>
          extended by com.fasterxml.jackson.datatype.joda.ser.IntervalSerializer
All Implemented Interfaces:
com.fasterxml.jackson.databind.jsonFormatVisitors.JsonFormatVisitable, com.fasterxml.jackson.databind.jsonschema.SchemaAware

public class IntervalSerializer
extends com.fasterxml.jackson.databind.ser.std.StdSerializer<T>

Author:
jkolobok

Nested Class Summary
 
Nested classes/interfaces inherited from class com.fasterxml.jackson.databind.JsonSerializer
com.fasterxml.jackson.databind.JsonSerializer.None
 
Field Summary
 
Fields inherited from class com.fasterxml.jackson.databind.ser.std.StdSerializer
_handledType
 
Constructor Summary
IntervalSerializer()
           
 
Method Summary
 void serialize(org.joda.time.Interval interval, com.fasterxml.jackson.core.JsonGenerator jsonGenerator, com.fasterxml.jackson.databind.SerializerProvider serializerProvider)
           
 void serializeWithType(T value, com.fasterxml.jackson.core.JsonGenerator jgen, com.fasterxml.jackson.databind.SerializerProvider provider, com.fasterxml.jackson.databind.jsontype.TypeSerializer typeSer)
           
 
Methods inherited from class com.fasterxml.jackson.databind.ser.std.StdSerializer
acceptJsonFormatVisitor, createObjectNode, createSchemaNode, createSchemaNode, getSchema, getSchema, handledType, isDefaultSerializer, wrapAndThrow, wrapAndThrow
 
Methods inherited from class com.fasterxml.jackson.databind.JsonSerializer
getDelegatee, isEmpty, isUnwrappingSerializer, replaceDelegatee, unwrappingSerializer, usesObjectId
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IntervalSerializer

public IntervalSerializer()
Method Detail

serialize

public void serialize(org.joda.time.Interval interval,
                      com.fasterxml.jackson.core.JsonGenerator jsonGenerator,
                      com.fasterxml.jackson.databind.SerializerProvider serializerProvider)
               throws IOException,
                      com.fasterxml.jackson.core.JsonGenerationException
Specified by:
serialize in class com.fasterxml.jackson.databind.ser.std.StdSerializer<org.joda.time.Interval>
Throws:
IOException
com.fasterxml.jackson.core.JsonGenerationException

serializeWithType

public void serializeWithType(T value,
                              com.fasterxml.jackson.core.JsonGenerator jgen,
                              com.fasterxml.jackson.databind.SerializerProvider provider,
                              com.fasterxml.jackson.databind.jsontype.TypeSerializer typeSer)
                       throws IOException,
                              com.fasterxml.jackson.core.JsonProcessingException
Overrides:
serializeWithType in class com.fasterxml.jackson.databind.JsonSerializer<T>
Throws:
IOException
com.fasterxml.jackson.core.JsonProcessingException


Copyright © 2012 FasterXML. All Rights Reserved.