Package io.scanbot.sdk.textpattern
Class DefaultContentValidator
java.lang.Object
io.scanbot.sdk.textpattern.ContentValidator
io.scanbot.sdk.textpattern.DefaultContentValidator
Default content validator. Accepts only non-empty strings.
-
Constructor Summary
ConstructorsConstructorDescriptionConstructs DefaultContentValidator with default parameters.DefaultContentValidator(String allowedCharacters) Constructs DefaultContentValidator with the given params. -
Method Summary
Modifier and TypeMethodDescriptionGetter for allowedCharacters field.voidsetAllowedCharacters(String allowedCharacters) Setter for allowedCharacters field.
-
Constructor Details
-
DefaultContentValidator
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
Getter for allowedCharacters field. See constructor documentation for more information about the field.- Returns:
- allowedCharacters
-
setAllowedCharacters
Setter for allowedCharacters field. See constructor documentation for more information about the field.- Parameters:
allowedCharacters- Value to set.
-