Package com.logviewer.formats.utils
Class LvLayoutRegexNode
java.lang.Object
com.logviewer.formats.utils.LvLayoutCustomTypeNode
com.logviewer.formats.utils.LvLayoutRegexNode
- All Implemented Interfaces:
LvLayoutNode,LvLayoutNodeSearchable,Cloneable
-
Field Summary
Fields inherited from interface com.logviewer.formats.utils.LvLayoutNode
PARSE_FAILED, SKIP_FIELD -
Constructor Summary
ConstructorsConstructorDescriptionLvLayoutRegexNode(String fieldName, String fieldType, String pattern) LvLayoutRegexNode(String fieldName, String fieldType, Pattern pattern) -
Method Summary
Methods inherited from class com.logviewer.formats.utils.LvLayoutCustomTypeNode
getFieldName, getFieldType, toStringMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.logviewer.formats.utils.LvLayoutNode
getValueStart, removeSpacesBefore
-
Constructor Details
-
LvLayoutRegexNode
-
LvLayoutRegexNode
-
-
Method Details
-
parse
- Specified by:
parsein interfaceLvLayoutNode- 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.
-
search
- Specified by:
searchin interfaceLvLayoutNodeSearchable
-
clone
- Specified by:
clonein interfaceLvLayoutNode- Specified by:
clonein classLvLayoutCustomTypeNode
-