public class ReaderExt
extends java.lang.Object
| Constructor and Description |
|---|
ReaderExt() |
| Modifier and Type | Method and Description |
|---|---|
static java.lang.String |
readAsString(java.io.Reader rdr,
java.util.EnumSet<ReadOptionType> options)
Returns the file as a singl string, optionally with end-of-line characters (sequences).
|
static java.util.List<java.lang.String> |
readLines(java.io.Reader rdr,
java.util.EnumSet<ReadOptionType> options)
Reads lines from the given reader, applying options.
|
public static java.util.List<java.lang.String> readLines(java.io.Reader rdr,
java.util.EnumSet<ReadOptionType> options)
rdr - the reader from which to read linesoptions - how to handle whitespace only lines, eolns, and exceptionsReadOptionTypepublic static java.lang.String readAsString(java.io.Reader rdr,
java.util.EnumSet<ReadOptionType> options)
rdr - the reader from which to read linesoptions - how to handle whitespace only lines, eolns, and exceptionsReadOptionType