Class PEFValidatorFacade

java.lang.Object
org.daisy.braille.facade.PEFValidatorFacade

public class PEFValidatorFacade extends Object
Provides a facade for PEFValidator
Author:
Joel HÃ¥kansson
  • Constructor Details

    • PEFValidatorFacade

      public PEFValidatorFacade()
  • Method Details

    • validate

      public static boolean validate(File in) throws 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:
      IOException - throws IOException if an error occurred
    • validate

      public static boolean validate(File in, PrintStream msg) throws IOException
      Validates the supplied PEF-file and sends the validator messages to the supplied PrintStream
      Parameters:
      in - the PEF-file to validate
      msg - 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