public class InputStreamExt
extends java.lang.Object
| Constructor and Description |
|---|
InputStreamExt() |
| Modifier and Type | Method and Description |
|---|---|
static java.util.List<java.lang.String> |
readLines(java.io.InputStream stream)
Reads the file into a string array, without end-of-line characters
(sequences).
|
static java.util.List<java.lang.String> |
readLines(java.io.InputStream stream,
java.util.EnumSet<ReadOptionType> options)
Reads the file into a string array, without end-of-line characters
(sequences).
|
public static java.util.List<java.lang.String> readLines(java.io.InputStream stream)
throws IORuntimeException
stream - the stream to read lines fromIORuntimeExceptionpublic static java.util.List<java.lang.String> readLines(java.io.InputStream stream,
java.util.EnumSet<ReadOptionType> options)
throws IORuntimeException
stream - the stream to read lines fromoptions - whether to read whitespace lines, to include eolns, and/or to throw exceptionsIORuntimeException