Skip to content

Instantly share code, notes, and snippets.

@digitalbuddha
Last active January 13, 2017 14:47
Show Gist options
  • Select an option

  • Save digitalbuddha/b950a37edbbb7c865aad517b7ca037a0 to your computer and use it in GitHub Desktop.

Select an option

Save digitalbuddha/b950a37edbbb7c865aad517b7ca037a0 to your computer and use it in GitHub Desktop.
Store1
Store<Article> Store = ParsingStoreBuilder.<BufferedSource, String>builder()
.fetcher(this::ResponseAsSource) //responseBody.source()
.persister(SourcePersisterFactory.create(context.getFilesDir())
.parser(GsonParserFactory.createSourceParser(gson, Article.class))
.open();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment