Пример #1
0
 public static String toString(final Reader reader) throws IOException {
   return IOUtils.toString(reader, Charset.defaultCharset());
 }
Пример #2
0
 public static String toString(final InputStream inputStream) throws IOException {
   return IOUtils.toString(inputStream, Charset.defaultCharset());
 }