private abstract static class Formatters.JustifyingFormatStep extends java.lang.Object implements FormatStep
Modifier and Type | Field and Description |
---|---|
private boolean |
leftJustify |
private int |
maximumWidth |
private int |
minimumWidth |
private boolean |
truncateBeginning |
Modifier | Constructor and Description |
---|---|
protected |
JustifyingFormatStep(boolean leftJustify,
int minimumWidth,
boolean truncateBeginning,
int maximumWidth) |
Modifier and Type | Method and Description |
---|---|
int |
estimateLength()
Emit an estimate of the length of data which this step will produce.
|
void |
render(java.lang.StringBuilder builder,
ExtLogRecord record)
Render a part of the log record.
|
abstract void |
renderRaw(java.lang.StringBuilder builder,
ExtLogRecord record) |
private final boolean leftJustify
private final boolean truncateBeginning
private final int minimumWidth
private final int maximumWidth
protected JustifyingFormatStep(boolean leftJustify, int minimumWidth, boolean truncateBeginning, int maximumWidth)
public void render(java.lang.StringBuilder builder, ExtLogRecord record)
FormatStep
render
in interface FormatStep
builder
- the string builder to append torecord
- the record being renderedpublic int estimateLength()
FormatStep
estimateLength
in interface FormatStep
public abstract void renderRaw(java.lang.StringBuilder builder, ExtLogRecord record)