Gets 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 requeste
(final InputStream input)
| 1017 | * @deprecated 2.5 use {@link #toString(InputStream, Charset)} instead |
| 1018 | */ |
| 1019 | @Deprecated |
| 1020 | public static String toString(final InputStream input) throws IOException { |
| 1021 | return toString(input, Charset.defaultCharset()); |
| 1022 | } |
| 1023 | |
| 1024 | /** |
| 1025 | * Gets the contents of an <code>InputStream</code> as a String |