@@ -57,7 +57,7 @@ public enum SerializationFeature implements ConfigFeature
57
57
58
58
/*
59
59
/******************************************************
60
- /* Error handling features
60
+ /* Error handling features
61
61
/******************************************************
62
62
*/
63
63
@@ -265,6 +265,18 @@ public enum SerializationFeature implements ConfigFeature
265
265
*/
266
266
WRITE_BIGDECIMAL_AS_PLAIN (false ),
267
267
268
+ /**
269
+ * Feature that controls whether numeric timestamp values are
270
+ * to be written using nanosecond timestamps (enabled) or not (disabled);
271
+ * if disabled, standard millisecond timestamps are assumed.
272
+ * This is the counterpart to {@link DeserializationFeature#READ_DATE_TIMESTAMPS_AS_NANOSECONDS}.
273
+ *<p>
274
+ * Feature is disabled by default.
275
+ *
276
+ * @since 2.2
277
+ */
278
+ WRITE_DATE_TIMESTAMPS_AS_NANOSECONDS (false ),
279
+
268
280
/**
269
281
* Feature that determines whether {@link java.util.Map} entries are first
270
282
* sorted by key before serialization or not: if enabled, additional sorting
@@ -275,6 +287,18 @@ public enum SerializationFeature implements ConfigFeature
275
287
*/
276
288
ORDER_MAP_ENTRIES_BY_KEYS (false ),
277
289
290
+ /**
291
+ * Feature that specifies whether context provided {@link java.util.TimeZone}
292
+ * ({@link SerializerProvider#getTimeZone()} should be used to adjust Date/Time
293
+ * values on deserialization, even if value itself contains timezone information.
294
+ * If enabled, contextual <code>TimeZone</code> will essentially override any other
295
+ * TimeZone information; if disabled, it will only be used if value itself does not
296
+ * contain any TimeZone information.
297
+ *
298
+ * @since 2.2
299
+ */
300
+ ADJUST_DATES_TO_CONTEXT_TIME_ZONE (true ),
301
+
278
302
/*
279
303
/******************************************************
280
304
/* Other
0 commit comments