Skip to content

Instantly share code, notes, and snippets.

@yoppi
Created June 20, 2011 17:53
Show Gist options
  • Save yoppi/1036122 to your computer and use it in GitHub Desktop.
Save yoppi/1036122 to your computer and use it in GitHub Desktop.
public List<String> convertInputStreamToString(InputStream is) {
List<String> ret = Collections.emptyList();
try {
ret = IOUtils.readLines(is);
} catch (IOException e) {
e.printStackTrace();
}
return ret;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment