| Modifier and Type | Field and Description |
|---|---|
static Reader |
EMPTY_READER
A reader that always signals "end-of-input".
|
| Modifier and Type | Method and Description |
|---|---|
static Reader |
asReader(CharSequence cs)
Wraps the given
CharSequence in a Reader - much more efficient than "new
StringReader(cs.toString)". |
static String |
readAll(Reader reader) |
static String |
readAll(Reader reader,
boolean closeReader) |
static Reader |
singlingFilterReader(Reader delegate) |
public static final Reader EMPTY_READER
public static String readAll(Reader reader) throws IOException
Reader producesIOExceptionpublic static String readAll(Reader reader, boolean closeReader) throws IOException
closeReader - Whether the reader should be closed before the method returnsReader producesIOExceptionpublic static Reader asReader(CharSequence cs)
CharSequence in a Reader - much more efficient than "new
StringReader(cs.toString)".public static Reader singlingFilterReader(Reader delegate)
Reader for which Reader.read(char[], int, int) returns at most 1Copyright © 2018 Arno Unkrig. All rights reserved.