Package org.daisy.braille.facade
Class PEFValidatorFacade
- java.lang.Object
-
- org.daisy.braille.facade.PEFValidatorFacade
-
public class PEFValidatorFacade extends java.lang.Object
Provides a facade for PEFValidator- Author:
- Joel HÃ¥kansson
-
-
Constructor Summary
Constructors Constructor Description PEFValidatorFacade()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static boolean
validate(java.io.File in)
Validates the supplied PEF-filestatic boolean
validate(java.io.File in, java.io.PrintStream msg)
Validates the supplied PEF-file and sends the validator messages to the supplied PrintStream
-
-
-
Method Detail
-
validate
public static boolean validate(java.io.File in) throws java.io.IOException
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:
java.io.IOException
- throws IOException if an error occurred
-
validate
public static boolean validate(java.io.File in, java.io.PrintStream msg) throws java.io.IOException
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:
java.io.IOException
- throws IOException if an error occurred
-
-