Class Formatters.JustifyingFormatStep
java.lang.Object
org.jboss.logmanager.formatters.Formatters.JustifyingFormatStep
- All Implemented Interfaces:
FormatStep
- Direct Known Subclasses:
Formatters.SegmentedFormatStep
- Enclosing class:
Formatters
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final booleanprivate final intprivate final intprivate final boolean -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedJustifyingFormatStep(boolean leftJustify, int minimumWidth, boolean truncateBeginning, int maximumWidth) -
Method Summary
Modifier and TypeMethodDescriptionintEmit an estimate of the length of data which this step will produce.voidrender(StringBuilder builder, ExtLogRecord record) Render a part of the log record.abstract voidrenderRaw(StringBuilder builder, ExtLogRecord record)
-
Field Details
-
leftJustify
private final boolean leftJustify -
truncateBeginning
private final boolean truncateBeginning -
minimumWidth
private final int minimumWidth -
maximumWidth
private final int maximumWidth
-
-
Constructor Details
-
JustifyingFormatStep
protected JustifyingFormatStep(boolean leftJustify, int minimumWidth, boolean truncateBeginning, int maximumWidth)
-
-
Method Details
-
render
Description copied from interface:FormatStepRender a part of the log record.- Specified by:
renderin interfaceFormatStep- Parameters:
builder- the string builder to append torecord- the record being rendered
-
estimateLength
public int estimateLength()Description copied from interface:FormatStepEmit an estimate of the length of data which this step will produce. The more accurate the estimate, the more likely the format operation will be performant.- Specified by:
estimateLengthin interfaceFormatStep- Returns:
- an estimate
-
renderRaw
-