public class IOUtils extends Object
| Constructor and Description |
|---|
IOUtils() |
| Modifier and Type | Method and Description |
|---|---|
static List<String> |
readLines(InputStream input)
Returns the lines of an
InputStream as a list of Strings. |
static List<String> |
readLines(InputStream input,
Charset charset)
Returns the lines of an
InputStream as a list of Strings. |
static List<String> |
readLines(Reader input)
Returns the lines of a
Reader as a list of Strings. |
public static List<String> readLines(InputStream input) throws IOException
InputStream as a list of Strings.input - the InputStream to read from.IOExceptionpublic static List<String> readLines(InputStream input, Charset charset) throws IOException
InputStream as a list of Strings.input - the InputStream to read from.charset - a charset.IOExceptionpublic static List<String> readLines(Reader input) throws IOException
Reader as a list of Strings.input - the Reader to read from.IOExceptionCopyright © 2015. All rights reserved.