Package org.verapdf.pdfa
Interface PDFAValidator
- All Superinterfaces:
AutoCloseable,Closeable,Component
- All Known Implementing Classes:
BaseValidator
A PDFAValidator performs a series of checks on PDF/A documents to verify that
the document conforms to a specific PDF/A flavour.
Note that the interface makes no provision for configuration of a validator
instance. This is left to the implementer although the veraPDF library API
provides a
ValidatorFactory class. This is designed to allow
immutable validator instances, meaning there is no methods provided to change
the ValidationProfile, or the pre-configured settings.- Author:
- Maksim Bezrukov
-
Method Summary
Modifier and TypeMethodDescriptionvoidcancelValidation(JobEndStatus endStatus) Returns the completeValidationProfileenforced by this PDFAValidator.validate(PDFAParser toValidate) This method validates an InputStream, presumably believed to be a PDF/A document of a specific flavour that matches the ValidationProfile supported by the PDFAValidator instance.validateAll(PDFAParser toValidate) Methods inherited from interface org.verapdf.component.Component
getDetails
-
Method Details
-
getProfile
ValidationProfile getProfile()Returns the completeValidationProfileenforced by this PDFAValidator.- Returns:
- this PDFAValidator instance's ValiationProfile
-
validate
This method validates an InputStream, presumably believed to be a PDF/A document of a specific flavour that matches the ValidationProfile supported by the PDFAValidator instance.- Parameters:
toValidate- aInputStreamto be validated- Returns:
- a
ValidationResultcontaining the result of validation and details of failed checks and possibly passed checks, dependent upon configuration. - Throws:
ValidationException
-
validateAll
- Throws:
ValidationException
-
getValidationProgressString
String getValidationProgressString() -
cancelValidation
-