public class IOUtils extends Object
| Constructor and Description |
|---|
IOUtils() |
| Modifier and Type | Method and Description |
|---|---|
static String |
toString(InputStream input,
boolean close)
Returns the content of the InputStream as a String, closing the stream afterwards if configured.
|
static String |
toString(InputStream input,
Charset charset,
boolean close) |
static String |
toString(Reader input,
boolean close)
Returns the content of the Reader as a String, closing the stream afterwards if configured.
|
public static String toString(InputStream input, Charset charset, boolean close) throws IOException
IOExceptionpublic static String toString(InputStream input, boolean close) throws IOException
input - the InputStreamclose - the boolean to close the input afterwardsIOExceptionorg.apache.commons.io.IOUtils.toString(InputStream)}public static String toString(Reader input, boolean close) throws IOException
input - the Readerclose - the boolean to close the input afterwardsIOExceptionorg.apache.commons.io.IOUtils.toString(Reader)}Copyright © 2003–2016. All rights reserved.