Package org.daisy.braille.facade
Class PEFValidatorFacade
java.lang.Object
org.daisy.braille.facade.PEFValidatorFacade
Provides a facade for PEFValidator
- Author:
- Joel HÃ¥kansson
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic boolean
Validates the supplied PEF-filestatic boolean
validate
(File in, PrintStream msg) Validates the supplied PEF-file and sends the validator messages to the supplied PrintStream
-
Constructor Details
-
PEFValidatorFacade
public PEFValidatorFacade()
-
-
Method Details
-
validate
Validates the supplied PEF-file- Parameters:
in
- the PEF-file to validate- Returns:
- returns true if PEF-file is valid and validation was successful, false otherwise
- Throws:
IOException
- throws IOException if an error occurred
-
validate
Validates the supplied PEF-file and sends the validator messages to the supplied PrintStream- Parameters:
in
- the PEF-file to validatemsg
- the PrintStream to send validator messages to- Returns:
- returns true if PEF-file is valid and validation was successful, false otherwise
- Throws:
IOException
- throws IOException if an error occurred
-