Interface ValidatingParser
- All Superinterfaces:
PackageParser
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.openpreservation.odf.pkg.PackageParser
PackageParser.ParseException
-
Method Summary
Modifier and TypeMethodDescriptionvalidatePackage
(Path path, OdfPackage odfPackage) Validates the given ODF package.Methods inherited from interface org.openpreservation.odf.pkg.PackageParser
parsePackage, parsePackage, parsePackage
-
Method Details
-
validatePackage
ValidationReport validatePackage(Path path, OdfPackage odfPackage) throws PackageParser.ParseException, FileNotFoundException Validates the given ODF package.- Parameters:
odfPackage
- the ODF Package to validate, this must not be null- Returns:
- a ValidationReport containing the results of the validation
- Throws:
IOException
- if there's a problem reading package elements from the zip file.PackageParser.ParseException
FileNotFoundException
-