List of usage examples for com.google.gson JsonDeserializer interface-usage
From source file br.com.sgejs.util.DateGsonDeserializer.java
/**
*
* @author Tiagolgo
*/
@Dependent
@Alternative
From source file br.ufg.inf.es.saep.sandbox.dominio.infraestrutura.ValorDeserializer.java
/**
* Define processo de converso de "string" em instncia
* de Valor.
*
* @see Valor
*/
From source file by.gdgminsk.animationguide.data.deserializer.UriDeserializer.java
public class UriDeserializer implements JsonDeserializer<Uri> { @Override public Uri deserialize(JsonElement json, Type typeOfT, JsonDeserializationContext context) throws JsonParseException { String uri = json.getAsString(); return TextUtils.isEmpty(uri) ? null : Uri.parse(uri);
From source file ca.cmput301w14t09.elasticSearch.JsonBitmapConverter.java
/**
*
* JsonBitmapConverter takes a bitmap and converts it into json
*
*/
From source file ca.cmput301w14t09.FileManaging.SerializableBitmap.java
/**
* SerializableBitmap is a class that takes an existing Bitmap, wraps it
* in a class that adds standard Serialization and JsonSerialization support such that we do not need to make
* custom controller calls every time we need to store information for a Bitmap.
*
* See:
From source file ca.cs.ualberta.localpost.controller.BitmapJsonConverter.java
/** * Provides custom base64 serialization / deserialization for Bitmaps. * Algorithm taken from: http://stackoverflow.com/questions/9224056/android-bitmap-to-base64-string * @author zjullion */ public class BitmapJsonConverter implements JsonDeserializer<Bitmap>, JsonSerializer<Bitmap> {
From source file ca.tokenize.sally.api.DateDeserializer.java
public class DateDeserializer implements JsonDeserializer<Date> { private static final String SALLY_DATE_FORMAT = "yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"; @Override public Date deserialize(JsonElement element, Type type, JsonDeserializationContext context) { String date = element.getAsString();
From source file ca.ualberta.cmput301.t03.trading.serialization.TradeStateDeserializer.java
/**
* class TradeStateDeserialize implements {@link JsonDeserializer<TradeState>}
* <p>
* This class gives Gson the ability to deserialize a TradeState object.
*
* @see {@link TradeStateSerializer}
From source file ca.ualberta.cmput301w14t08.geochan.json.BitmapJsonConverter.java
/**
* Handles the serialization and deserialization of Bitmap objects
* to and from base64 JSON strings.
*
* @author Artem Chikin
* @author Artem Herasymchuk
From source file ca.ualberta.cmput301w14t08.geochan.json.CommentJsonConverter.java
/**
* Handles the serialization and deserialization of Comment objects
* to and from JSON format.
*
* @author Artem Herasymchuk
*