Class ByteFilteringOutputStream.Filter
java.lang.Object
org.apache.nifi.processors.hadoop.util.ByteFilteringOutputStream.Filter
- Enclosing class:
ByteFilteringOutputStream
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) final int(package private) int(package private) final byte[](package private) final byte[] -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
toReplace
final byte[] toReplace -
replaceWith
final byte[] replaceWith -
maxMatches
final int maxMatches -
numMatches
int numMatches
-
-
Constructor Details
-
Filter
public Filter(byte[] toReplace, byte[] replaceWith, int maxReplacements)
-
-
Method Details
-
matches
public boolean matches(byte candidate) -
matches
public boolean matches(byte[] candidate, int offset, int length)
-