public class RpcPacketFieldPatternRule extends RpcPacketFieldRule
| Modifier and Type | Field and Description |
|---|---|
protected java.util.regex.Pattern |
fieldPattern
The regex pattern for matching fields which the field values (bytes) will
not be converted to strings.
|
FIELD_PATTERN, skipConversion, START_FIELD, STOP_FIELD| Constructor and Description |
|---|
RpcPacketFieldPatternRule(java.lang.String fieldRegex)
Constructor for creating a field pattern rule.
|
| Modifier and Type | Method and Description |
|---|---|
java.util.regex.Pattern |
getFieldPattern()
Gets the field pattern.
|
void |
update(java.lang.String fieldName)
Updates the conversion rule.
|
getInstance, isSkipConversionprotected java.util.regex.Pattern fieldPattern
Pattern object to be compiled with the passed-in field pattern parameter. It is reusable and thus better performance overall.
public RpcPacketFieldPatternRule(java.lang.String fieldRegex)
fieldRegex - the field regex, not nullpublic void update(java.lang.String fieldName)
update in class RpcPacketFieldRulefieldName - the field namepublic java.util.regex.Pattern getFieldPattern()
Copyright © 2021 Perforce Software. All Rights Reserved.