List of usage examples for com.google.gson JsonSerializer interface-usage
From source file com.ruesga.rview.gerrit.adapters.GerritServerVersionAdapter.java
public class GerritServerVersionAdapter implements JsonDeserializer<ServerVersion>, JsonSerializer<ServerVersion> { @Override public ServerVersion deserialize(JsonElement json, Type typeof, JsonDeserializationContext ctx) throws JsonParseException { return new ServerVersion(json.getAsString());
From source file com.ruesga.rview.gerrit.adapters.GerritUtcDateAdapter.java
public class GerritUtcDateAdapter implements JsonDeserializer<Date>, JsonSerializer<Date> { private final DateFormat mDateFormat; public GerritUtcDateAdapter() { mDateFormat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss.SSS", Locale.US);
From source file com.sandata.lab.common.utils.data.adapter.CustomJavaDateAdapter.java
/**
* Serialize/Deserialize java.util.Date to/from JSON.
* <p/>
* Date: 9/29/2014
* Time: 4:45 PM
*
From source file com.sandata.lab.common.utils.data.adapter.CustomJodaDateAdapter.java
/** * Date: 9/5/13 * Time: 5:19 PM */ public class CustomJodaDateAdapter implements JsonDeserializer<LocalDate>, JsonSerializer<LocalDate> {
From source file com.sandata.lab.common.utils.data.adapter.CustomJodaTimeAdapter.java
/** * Date: 9/5/13 * Time: 5:28 PM */ public class CustomJodaTimeAdapter implements JsonDeserializer<LocalTime>, JsonSerializer<LocalTime> {
From source file com.sandata.lab.common.utils.data.adapter.CustomLocalDateTimeAdapter.java
/**
* Convert LocalDateTime to/from JSON.
* <p/>
* Date: 7/2/2014
* Time: 6:48 PM
*
From source file com.sandata.lab.common.utils.data.adapter.JodaLocalDateJsonAdapter.java
/** * Date: 12/17/13 * Time: 7:06 AM */ public class JodaLocalDateJsonAdapter implements JsonDeserializer<LocalDate>, JsonSerializer<LocalDate> {
From source file com.sandata.lab.common.utils.data.adapter.JodaLocalTimeJsonAdapter.java
/** * Date: 12/17/13 * Time: 7:08 AM */ public class JodaLocalTimeJsonAdapter implements JsonDeserializer<LocalTime>, JsonSerializer<LocalTime> {
From source file com.sandata.lab.common.utils.data.serializer.CustomHashMapSerializer.java
/** * Date: 8/21/13 * Time: 3:49 PM */ public class CustomHashMapSerializer implements JsonSerializer<Map> {
From source file com.SatanicSpider.Serialization.BodySerializer.java
/** * * @author bryant */ public class BodySerializer implements JsonSerializer<Body>, JsonDeserializer<Body> {