Get the contents of an InputStream as a String using the default character encoding of the platform. This method buffers the input internally, so there is no need to use a BufferedInputStream . @param input the InputStream to read from @return the requested
(InputStream input)
| 691 | * @throws IOException if an I/O error occurs |
| 692 | */ |
| 693 | public static String toString(InputStream input) throws IOException { |
| 694 | StringWriter sw = new StringWriter(); |
| 695 | copy(input, sw); |
| 696 | return sw.toString(); |
| 697 | } |
| 698 | |
| 699 | /** |
| 700 | * Get the contents of an <code>InputStream</code> as a String using the |
no test coverage detected