Class Validators
java.lang.Object
org.openpreservation.odf.validation.Validators
-
Method Summary
Modifier and TypeMethodDescriptionstatic final ValidatingParser
Get a validating parser instance.static boolean
isCompressionValid
(ZipEntry entry) Check if a zip entry has a valid compression method.
-
Method Details
-
getValidatingParser
public static final ValidatingParser getValidatingParser() throws ParserConfigurationException, SAXExceptionGet a validating parser instance.- Returns:
- a validating parser instance
- Throws:
ParserConfigurationException
SAXException
-
isCompressionValid
Check if a zip entry has a valid compression method.- Parameters:
entry
- a zip entry to check- Returns:
- true if the compression method is valid, else false
-