Class DefaultContentValidator

java.lang.Object
io.scanbot.sdk.textpattern.ContentValidator
io.scanbot.sdk.textpattern.DefaultContentValidator

public class DefaultContentValidator extends ContentValidator
Default content validator. Accepts only non-empty strings.
  • Constructor Details

    • DefaultContentValidator

      public DefaultContentValidator(String allowedCharacters)
      Constructs DefaultContentValidator with the given params.
      Parameters:
      allowedCharacters - OCR whitelist. Empty string means no restriction. Only characters that are present in the allowedCharacters string will be accepted. For example, if allowedCharacters is set to "ab", the result may only contain characters 'a' and 'b'. Default is `""`
    • DefaultContentValidator

      public DefaultContentValidator()
      Constructs DefaultContentValidator with default parameters.
  • Method Details

    • getAllowedCharacters

      public String getAllowedCharacters()
      Getter for allowedCharacters field. See constructor documentation for more information about the field.
      Returns:
      allowedCharacters
    • setAllowedCharacters

      public void setAllowedCharacters(String allowedCharacters)
      Setter for allowedCharacters field. See constructor documentation for more information about the field.
      Parameters:
      allowedCharacters - Value to set.