Package org.jboss.logmanager.formatters
Class Formatters.JustifyingFormatStep
- java.lang.Object
-
- org.jboss.logmanager.formatters.Formatters.JustifyingFormatStep
-
- All Implemented Interfaces:
FormatStep
- Direct Known Subclasses:
Formatters.SegmentedFormatStep
- Enclosing class:
- Formatters
private abstract static class Formatters.JustifyingFormatStep extends java.lang.Object implements FormatStep
-
-
Field Summary
Fields Modifier and Type Field Description private booleanleftJustifyprivate intmaximumWidthprivate intminimumWidthprivate booleantruncateBeginning
-
Constructor Summary
Constructors Modifier Constructor Description protectedJustifyingFormatStep(boolean leftJustify, int minimumWidth, boolean truncateBeginning, int maximumWidth)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description intestimateLength()Emit an estimate of the length of data which this step will produce.voidrender(java.lang.StringBuilder builder, ExtLogRecord record)Render a part of the log record.abstract voidrenderRaw(java.lang.StringBuilder builder, ExtLogRecord record)
-
-
-
Method Detail
-
render
public void render(java.lang.StringBuilder builder, ExtLogRecord record)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
public abstract void renderRaw(java.lang.StringBuilder builder, ExtLogRecord record)
-
-