public class IOUtils
extends java.lang.Object
Constructor and Description |
---|
IOUtils() |
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
toString(java.io.InputStream input,
boolean close)
Returns the content of the InputStream as a String, closing the stream afterwards if configured.
|
static java.lang.String |
toString(java.io.Reader input,
boolean close)
Returns the content of the Reader as a String, closing the stream afterwards if configured.
|
public static java.lang.String toString(java.io.InputStream input, boolean close) throws java.io.IOException
input
- the InputStreamclose
- the boolean to close the input afterwardsjava.io.IOException
org.apache.commons.io.IOUtils.toString(InputStream)}
public static java.lang.String toString(java.io.Reader input, boolean close) throws java.io.IOException
input
- the Readerclose
- the boolean to close the input afterwardsjava.io.IOException
org.apache.commons.io.IOUtils.toString(Reader)}
Copyright © 2003-2014. All Rights Reserved.