| Modifier and Type | Field and Description |
|---|---|
static Reader |
EMPTY_READER
Any attempts to read return an "end-of-input" condition.
|
| Modifier and Type | Method and Description |
|---|---|
static Reader |
concat(Iterable<Reader> delegates) |
static Reader |
concat(Reader... delegates) |
static void |
copy(Reader in,
Writer out) |
static Reader |
onFirstChar(Reader in,
Runnable runnable) |
static String |
readAll(Reader in) |
static Reader |
teeReader(Reader in,
Writer out,
boolean closeWriterOnEoi) |
static Reader |
trackLineAndColumn(Reader in,
LineAndColumnTracker tracker) |
public static final Reader EMPTY_READER
public static Reader onFirstChar(Reader in, Runnable runnable)
FilterReader that runs the runnable right before the first character is readpublic static Reader trackLineAndColumn(Reader in, LineAndColumnTracker tracker)
FilterReader that tracks line and column numbers while characters are being readpublic static Reader concat(Iterable<Reader> delegates)
public static String readAll(Reader in) throws IOException
IOExceptionpublic static void copy(Reader in, Writer out) throws IOException
IOExceptionCopyright © 2024. All rights reserved.