public interface LineLevelAppender extends LineDataConsumer, Closeable
Modifier and Type | Field and Description |
---|---|
static LineLevelAppender |
EMPTY |
static int |
TYPICAL_LINE_LENGTH
A typical line length used in many textual standards
|
FAIL, IGNORE
Modifier and Type | Method and Description |
---|---|
default void |
consume(CharSequence lineData) |
boolean |
isWriteEnabled() |
static LineLevelAppender |
wrap(Appendable appendable) |
static LineLevelAppender |
wrap(Appendable appendable,
BooleanSupplier writeEnabled) |
void |
writeLineData(CharSequence lineData)
Called by the implementation once end-of-line is detected.
|
static final int TYPICAL_LINE_LENGTH
static final LineLevelAppender EMPTY
boolean isWriteEnabled()
true
if OK to accumulate data in work bufferdefault void consume(CharSequence lineData) throws IOException
consume
in interface LineDataConsumer
IOException
void writeLineData(CharSequence lineData) throws IOException
lineData
- The "pure" line data - excluding any CR/LF(s).IOException
- If failed to write the datastatic LineLevelAppender wrap(Appendable appendable)
static LineLevelAppender wrap(Appendable appendable, BooleanSupplier writeEnabled)
Copyright © 2008–2024 The Apache Software Foundation. All rights reserved.