Top Description Fields Constructors Methods
com.fasterxml.jackson.databind.ser.std

public Class CalendarSerializer

extends DateTimeSerializerBase<Calendar>
Class Inheritance
Annotations
@JacksonStdImpl
@SuppressWarnings:serial
Imports
java.io.IOException, java.text.DateFormat, java.util.Calendar, com.fasterxml.jackson.core.*, com.fasterxml.jackson.databind.SerializerProvider, com.fasterxml.jackson.databind.annotation.JacksonStdImpl

References Deprecated

DateTimeSerializerBase is deprecated or references (maybe indirectly) at least one deprecated element.

See corresponding docs for further information.

Standard serializer for java.util.Calendar. As with other time/date types, is configurable to produce timestamps (standard Java 64-bit timestamp) or textual formats (usually ISO-8601).

Field Summary

Modifier and TypeField and Description
public static final CalendarSerializer
instance

References Deprecated CalendarSerializer is deprecated or references (maybe indirectly) at least one deprecated element.
Inherited from com.fasterxml.jackson.databind.ser.std.DateTimeSerializerBase:
_customFormat_reusedCustomFormat_useTimestamp

Constructor Summary

AccessConstructor and Description
public
public
CalendarSerializer(Boolean useTimestamp, DateFormat customFormat)

Method Summary

Modifier and TypeMethod and Description
protected long
public void
serialize(Calendar
Value to serialize; can not be null.
value
,
JsonGenerator
Generator used to output resulting Json content
g
,
SerializerProvider
Provider that can be used to get serializers for serializing Objects value contains, if any.
provider
)

Implements abstract com.fasterxml.jackson.databind.ser.std.DateTimeSerializerBase.serialize.

Method that can be called to ask implementation to serialize values of type this serializer handles.

public CalendarSerializer
withFormat(Boolean timestamp, DateFormat customFormat)

Implements abstract com.fasterxml.jackson.databind.ser.std.DateTimeSerializerBase.withFormat.

References Deprecated CalendarSerializer is deprecated or references (maybe indirectly) at least one deprecated element.

Inherited from com.fasterxml.jackson.databind.ser.std.DateTimeSerializerBase:
_acceptJsonFormatVisitor_asTimestamp_serializeAsStringacceptJsonFormatVisitorcreateContextualgetSchemaisEmpty

Field Detail

instanceback to summary
public static final CalendarSerializer instance

References Deprecated

CalendarSerializer is deprecated or references (maybe indirectly) at least one deprecated element.

See corresponding docs for further information.

Constructor Detail

CalendarSerializerback to summary
public CalendarSerializer()
CalendarSerializerback to summary
public CalendarSerializer(Boolean useTimestamp, DateFormat customFormat)

Method Detail

_timestampback to summary
protected long _timestamp(Calendar value)

Implements abstract com.fasterxml.jackson.databind.ser.std.DateTimeSerializerBase._timestamp.

Annotations
@Override
serializeback to summary
public void serialize(Calendar value, JsonGenerator g, SerializerProvider provider) throws IOException

Implements abstract com.fasterxml.jackson.databind.ser.std.DateTimeSerializerBase.serialize.

Doc from com.fasterxml.jackson.databind.JsonSerializer.serialize.

Method that can be called to ask implementation to serialize values of type this serializer handles.

Parameters
value:Calendar

Value to serialize; can not be null.

g:JsonGenerator

Generator used to output resulting Json content

provider:SerializerProvider

Provider that can be used to get serializers for serializing Objects value contains, if any.

Annotations
@Override
withFormatback to summary
public CalendarSerializer withFormat(Boolean timestamp, DateFormat customFormat)

Implements abstract com.fasterxml.jackson.databind.ser.std.DateTimeSerializerBase.withFormat.

References Deprecated

CalendarSerializer is deprecated or references (maybe indirectly) at least one deprecated element.

See corresponding docs for further information.

Annotations
@Override