Package org.apache.tika.config
Class ConfigValidator
java.lang.Object
org.apache.tika.config.ConfigValidator
Utility class for validating configuration parameters.
-
Method Summary
Modifier and TypeMethodDescriptionstatic voidmustNotBeEmpty(String paramName, String paramValue) Validates that a string parameter is not null or blank.static voidmustNotBeEmpty(String paramName, Path paramValue) Validates that a Path parameter is not null.
-
Method Details
-
mustNotBeEmpty
Validates that a string parameter is not null or blank.- Parameters:
paramName- the name of the parameter (for error messages)paramValue- the value to validate- Throws:
TikaConfigException- if the value is null or blank
-
mustNotBeEmpty
Validates that a Path parameter is not null.- Parameters:
paramName- the name of the parameter (for error messages)paramValue- the value to validate- Throws:
TikaConfigException- if the value is null
-