Skip to content

Instantly share code, notes, and snippets.

@igor-suhorukov
Created January 31, 2019 21:06
Show Gist options
  • Save igor-suhorukov/81c1eaea84296a0dc1d4773a2f5bbeb1 to your computer and use it in GitHub Desktop.
Save igor-suhorukov/81c1eaea84296a0dc1d4773a2f5bbeb1 to your computer and use it in GitHub Desktop.
try(Serializer ser = proc.getSerializer(System.out)) {
for(Item item; (item = iter.next()) != null;) {
ser.serialize(item);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment