Class ByteFilteringOutputStream.Filter

java.lang.Object
org.apache.nifi.processors.hadoop.util.ByteFilteringOutputStream.Filter
Enclosing class:
ByteFilteringOutputStream

static class ByteFilteringOutputStream.Filter extends Object
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    (package private) final int
     
    (package private) int
     
    (package private) final byte[]
     
    (package private) final byte[]
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    Filter(byte[] toReplace, byte[] replaceWith, int maxReplacements)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    matches(byte candidate)
     
    boolean
    matches(byte[] candidate, int offset, int length)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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)