Class LvLayoutStretchNode

java.lang.Object
com.logviewer.formats.utils.LvLayoutCustomTypeNode
com.logviewer.formats.utils.LvLayoutStretchNode
All Implemented Interfaces:
LvLayoutNode, Cloneable
Direct Known Subclasses:
NginxStretchNode

public class LvLayoutStretchNode extends LvLayoutCustomTypeNode
  • Field Details

    • removeSpacesBefore

      protected final boolean removeSpacesBefore
    • minSize

      protected final int minSize
    • start

      protected int start
    • end

      protected int end
  • Constructor Details

    • LvLayoutStretchNode

      public LvLayoutStretchNode(@NonNull String fieldName, @Nullable String fieldType, boolean removeSpacesBefore, int minSize)
  • Method Details

    • getStart

      public int getStart()
    • getEnd

      public int getEnd()
    • reset

      public boolean reset(String s, int start, int endStr)
    • parse

      public final int parse(String s, int offset, int end)
      Parameters:
      s - a string to parse.
      offset - begin of parsable text part
      end - end of parsable text part
      Returns:
      the end of parsed field, or LvLayoutNode.SKIP_FIELD if the part is not present, or LvLayoutNode.PARSE_FAILED if the string is not a valid log line.
    • removeSpacesBefore

      public boolean removeSpacesBefore()
    • getValueStart

      public int getValueStart(String s, int idx, int endStr)
    • getMinSize

      public int getMinSize()
    • clone

      public LvLayoutStretchNode clone()
      Specified by:
      clone in interface LvLayoutNode
      Specified by:
      clone in class LvLayoutCustomTypeNode
    • threadNode

      public static LvLayoutStretchNode threadNode()
    • messageNode

      public static LvLayoutStretchNode messageNode()
    • grow

      public boolean grow(String s, int targetPosition, int endStr)