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 String streamToString(InputStream is) throws IOException | |
| { | |
| final char[] buffer = new char[0x10000]; | |
| final StringBuilder out = new StringBuilder(); | |
| InputStreamReader in = null; | |
| try { | |
| in = new InputStreamReader(is); | |
| int read; | |
| while((read = in.read(buffer)) > 0) { | |
| out.append(buffer, 0, read); |