Get the contents of an InputStream as a character array using the default character encoding of the platform. This method buffers the input internally, so there is no need to use a BufferedInputStream . @param is the InputStream to read from @return the req
(InputStream is)
| 629 | * @since Commons IO 1.1 |
| 630 | */ |
| 631 | public static char[] toCharArray(InputStream is) throws IOException { |
| 632 | CharArrayWriter output = new CharArrayWriter(); |
| 633 | copy(is, output); |
| 634 | return output.toCharArray(); |
| 635 | } |
| 636 | |
| 637 | /** |
| 638 | * Get the contents of an <code>InputStream</code> as a character array using |
no test coverage detected