Class Location

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

public class Location extends Object
An object representing where a finding was discovered in content.
  • Constructor Details

    • Location

      public Location()
  • Method Details

    • getByteRange

      public Location.Range getByteRange()
      Get the finding's byte range.
      Returns:
      the byte range in which a finding was detected
    • getCodepointRange

      public Location.Range getCodepointRange()
      Get the finding's codepoint range.
      Returns:
      the codepoint range in which a finding was detected. This differs from byte range since a codepoint may contain multiple bytes.
    • toString

      public String toString()
      Overrides:
      toString in class Object