Class Proximity

java.lang.Object
ai.nightfall.scan.model.Proximity

public class Proximity extends Object
An object representing a range of bytes to consider around a candidate finding.
  • Constructor Details

    • Proximity

      public Proximity(int windowBefore, int windowAfter)
      Construct a new Proximity.
      Parameters:
      windowBefore - The number of leading characters to consider as context
      windowAfter - The number of trailing characters to consider as context
  • Method Details

    • getWindowBefore

      public int getWindowBefore()
      Get the number of leading bytes.
      Returns:
      the number of bytes to consider leading up to a candidate finding
    • getWindowAfter

      public int getWindowAfter()
      Get the number of trailing bytes.
      Returns:
      the number of bytes to consider trailing a candidate finding