Created
July 25, 2016 12:53
-
-
Save rparree/ad1911f9e63373f66ace5a1f1a92ebb8 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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