- All Implemented Interfaces:
- com.nytimes.android.external.store3.base.Parser<okio.BufferedSource,Parsed>, io.reactivex.functions.Function<okio.BufferedSource,Parsed>
public class GsonSourceParser<Parsed>
extends java.lang.Object
implements com.nytimes.android.external.store3.base.Parser<okio.BufferedSource,Parsed>
Parser to be used when going from a BufferedSource to any Parsed Type
example usage:
ParsingStoreBuilder.builder()
.fetcher(fetcher)
.persister(SourcePersisterFactory.create(getApplicationContext().getCacheDir()))
.parser(GsonParserFactory.createSourceParser(new Gson(),BookResult.class)
.open();