Package com.logviewer.formats.utils
Class LvLayoutStretchNode
java.lang.Object
com.logviewer.formats.utils.LvLayoutCustomTypeNode
com.logviewer.formats.utils.LvLayoutStretchNode
- All Implemented Interfaces:
LvLayoutNode,Cloneable
- Direct Known Subclasses:
NginxStretchNode
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected intprotected final intprotected final booleanprotected intFields inherited from interface com.logviewer.formats.utils.LvLayoutNode
PARSE_FAILED, SKIP_FIELD -
Constructor Summary
ConstructorsConstructorDescriptionLvLayoutStretchNode(String fieldName, String fieldType, boolean removeSpacesBefore, int minSize) -
Method Summary
Modifier and TypeMethodDescriptionclone()intgetEnd()intintgetStart()intgetValueStart(String s, int idx, int endStr) booleanstatic LvLayoutStretchNodefinal intbooleanbooleanstatic LvLayoutStretchNodeMethods inherited from class com.logviewer.formats.utils.LvLayoutCustomTypeNode
getFieldName, getFieldType, toString
-
Field Details
-
removeSpacesBefore
protected final boolean removeSpacesBefore -
minSize
protected final int minSize -
start
protected int start -
end
protected int end
-
-
Constructor Details
-
LvLayoutStretchNode
-
-
Method Details
-
getStart
public int getStart() -
getEnd
public int getEnd() -
reset
-
parse
- Parameters:
s- a string to parse.offset- begin of parsable text partend- end of parsable text part- Returns:
- the end of parsed field, or
LvLayoutNode.SKIP_FIELDif the part is not present, orLvLayoutNode.PARSE_FAILEDif the string is not a valid log line.
-
removeSpacesBefore
public boolean removeSpacesBefore() -
getValueStart
-
getMinSize
public int getMinSize() -
clone
- Specified by:
clonein interfaceLvLayoutNode- Specified by:
clonein classLvLayoutCustomTypeNode
-
threadNode
-
messageNode
-
grow
-