Class PEFValidatorFacade


  • public class PEFValidatorFacade
    extends java.lang.Object
    Provides a facade for PEFValidator
    Author:
    Joel HÃ¥kansson
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static boolean validate​(java.io.File in)
      Validates the supplied PEF-file
      static boolean validate​(java.io.File in, java.io.PrintStream msg)
      Validates the supplied PEF-file and sends the validator messages to the supplied PrintStream
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • PEFValidatorFacade

        public PEFValidatorFacade()
    • 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 validate
        msg - 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