Class Formatters.JustifyingFormatStep

    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      protected JustifyingFormatStep​(boolean leftJustify, int minimumWidth, boolean truncateBeginning, int maximumWidth)  
    • Method Summary

      All Methods Instance Methods Abstract Methods Concrete Methods 
      Modifier and Type Method 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)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • leftJustify

        private final boolean leftJustify
      • truncateBeginning

        private final boolean truncateBeginning
      • minimumWidth

        private final int minimumWidth
      • maximumWidth

        private final int maximumWidth
    • Constructor Detail

      • JustifyingFormatStep

        protected JustifyingFormatStep​(boolean leftJustify,
                                       int minimumWidth,
                                       boolean truncateBeginning,
                                       int maximumWidth)
    • Method Detail

      • render

        public void render​(java.lang.StringBuilder builder,
                           ExtLogRecord record)
        Description copied from interface: FormatStep
        Render a part of the log record.
        Specified by:
        render in interface FormatStep
        Parameters:
        builder - the string builder to append to
        record - the record being rendered
      • estimateLength

        public int estimateLength()
        Description copied from interface: FormatStep
        Emit 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:
        estimateLength in interface FormatStep
        Returns:
        an estimate
      • renderRaw

        public abstract void renderRaw​(java.lang.StringBuilder builder,
                                       ExtLogRecord record)