public static class DateSwap.ISO8601DTPZ extends DateSwap.ISO8601DTZ
CalendarSwap.ISO8601DTZ except serializes to millisecond precision.
DateSwap.DateFull, DateSwap.DateLong, DateSwap.DateMedium, DateSwap.DateShort, DateSwap.DateSimple, DateSwap.DateTimeFull, DateSwap.DateTimeLong, DateSwap.DateTimeMedium, DateSwap.DateTimeShort, DateSwap.DateTimeSimple, DateSwap.ISO8601D, DateSwap.ISO8601DT, DateSwap.ISO8601DTL, DateSwap.ISO8601DTP, DateSwap.ISO8601DTPZ, DateSwap.ISO8601DTZ, DateSwap.RFC2822D, DateSwap.RFC2822DT, DateSwap.RFC2822DTZ, DateSwap.TimeFull, DateSwap.TimeLong, DateSwap.TimeMedium, DateSwap.TimeShort, DateSwap.TimeSimple, DateSwap.ToString| Constructor and Description |
|---|
ISO8601DTPZ() |
| Modifier and Type | Method and Description |
|---|---|
String |
swap(BeanSession session,
Date o)
If this transform is to be used to serialize non-serializable POJOs, it must implement this method.
|
unswapforMediaTypes, forMediaTypes, getNormalClass, getSwapClass, getSwapClassMeta, isNormalObject, isSwappedObject, match, swap, toString, unswap, withTemplate, withTemplatepublic ISO8601DTPZ()
public String swap(BeanSession session, Date o) throws Exception
PojoSwapThe object must be converted into one of the following serializable types:
String
Number
Boolean
Collection containing anything on this list.
Map containing anything on this list.
swap in class DateSwap.ISO8601DTZsession - The bean session to use to get the class meta.
This is always going to be the same bean context that created this swap.o - The object to be transformed.Exception - If a problem occurred trying to convert the output.Copyright © 2016–2019 The Apache Software Foundation. All rights reserved.