public class RpcPacketFieldPatternRule extends RpcPacketFieldRule
Modifier and Type | Field and Description |
---|---|
protected 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(String fieldRegex)
Constructor for creating a field pattern rule.
|
Modifier and Type | Method and Description |
---|---|
Pattern |
getFieldPattern()
Gets the field pattern.
|
void |
update(String fieldName)
Updates the conversion rule.
|
getInstance, isSkipConversion
protected Pattern fieldPattern
Pattern object to be compiled with the passed-in field pattern parameter. It is reusable and thus better performance overall.
public RpcPacketFieldPatternRule(String fieldRegex)
fieldRegex
- the field regex, not nullpublic void update(String fieldName)
update
in class RpcPacketFieldRule
fieldName
- the field namepublic Pattern getFieldPattern()
Copyright © 2017 Perforce Software. All Rights Reserved.