Skip to content

Instantly share code, notes, and snippets.

@megascus
Created September 5, 2014 07:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save megascus/bad02e5665ffb20cce5c to your computer and use it in GitHub Desktop.
Save megascus/bad02e5665ffb20cce5c to your computer and use it in GitHub Desktop.
reader.lines().filter(s -> pattern.matcher(s).find()).map(s -> {
Matcher matcher = pattern.matcher(s);
matcher.find();
DataBean bean = new DataBean(matcher.group());
return bean;
}).forEach(s -> {
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment