Skip to content

Instantly share code, notes, and snippets.

@rparree
Created July 25, 2016 12:53
Show Gist options
  • Select an option

  • Save rparree/ad1911f9e63373f66ace5a1f1a92ebb8 to your computer and use it in GitHub Desktop.

Select an option

Save rparree/ad1911f9e63373f66ace5a1f1a92ebb8 to your computer and use it in GitHub Desktop.
char[] buffer = new char[1024];
String chunk = null;
while ((read = reader.read(buffer)) != -1) {
String s = String.valueOf(buffer, 0, read);
/* process the string: Look for "-", keep the part after it
for the next iteration. Add part before it to previous
chunk
*/
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment