Last active
July 13, 2016 16:05
-
-
Save MarounMaroun/4e6a0f5aef12458af06214667d001107 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
| private static List<String> getData(InputStream input) { | |
| List<String> result = new ArrayList<>(); | |
| BufferedReader reader = new BufferedReader(new InputStreamReader(input)); | |
| while (true) { | |
| String line = null; | |
| try { | |
| line = reader.readLine(); | |
| } catch (IOException exception) { } | |
| if (line == null) break; | |
| result.add(line); | |
| } | |
| return result; | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment