Android SpringAndroidObjectPersister - top ranked examples from Open Source projects

These code examples were ranked by Codota’s semantic indexing as the best open source examples for Android SpringAndroidObjectPersister class.

This code example shows how to use the following methods:
    // CONSTRUCTOR 
    // ============================================================================================ 
 
    public SimpleSerializerObjectPersister(Application application, Class<T> clazz, File cacheFolder)
        throws CacheCreationException { 
        super(application, clazz, cacheFolder);
        this.serializer = new Persister();
    } 
 
    public SimpleSerializerObjectPersister(Application application, Class<T> clazz) throws CacheCreationException {
        this(application, clazz, null);
    } 
 
    // ============================================================================================ 
    // METHODS 
    // ============================================================================================ 
 
    @Override 
    protected T deserializeData(String xml) throws CacheLoadingException {
        try { 
5
CodeRank
This code example shows how to use the following methods:
 
    // ============================================================================================ 
    // CONSTRUCTOR 
    // ============================================================================================ 
    public GsonObjectPersister(Application application, Class<T> clazz, File cacheFolder) throws CacheCreationException {
        super(application, clazz, cacheFolder);
        this.gson = new Gson();
    } 
 
    public GsonObjectPersister(Application application, Class<T> clazz) throws CacheCreationException {
        this(application, clazz, null);
    } 
 
    // ============================================================================================ 
    // METHODS 
    // ============================================================================================ 
 
    @Override 
    protected T deserializeData(String json) {
        return gson.fromJson(json, getHandledClass());
5
CodeRank
This code example shows how to use the following methods:
    // CONSTRUCTOR 
    // ============================================================================================ 
 
    public JacksonObjectPersister(Application application, Class<T> clazz, File cacheFolder)
        throws CacheCreationException { 
        super(application, clazz, cacheFolder);
        this.mJsonMapper = new ObjectMapper();
    } 
 
    public JacksonObjectPersister(Application application, Class<T> clazz) throws CacheCreationException {
        this(application, clazz, null);
    } 
 
    // ============================================================================================ 
    // METHODS 
    // ============================================================================================ 
 
    @Override 
    protected T deserializeData(String json) throws CacheLoadingException {
        try { 
5
CodeRank
See Code Examples for Android SpringAndroidObjectPersister Methods: