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)
FormatSteprender in interface FormatStepbuilder - the string builder to append torecord - the record being renderedpublic int estimateLength()
FormatStepestimateLength in interface FormatSteppublic abstract void renderRaw(java.lang.StringBuilder builder,
ExtLogRecord record)