Class AMPValidatorLoader


  • public final class AMPValidatorLoader
    extends Object
    This class load the validator main and extension proto ascii files.
    Author:
    nhant01, GeorgeLuo
    • Constructor Detail

      • AMPValidatorLoader

        public AMPValidatorLoader()
    • Method Detail

      • load

        public dev.amp.validator.ValidatorProtos.ValidatorRules.Builder load​(String filePath)
                                                                      throws IOException,
                                                                             URISyntaxException
        Loading the rules.
        Parameters:
        filePath - file path.
        Returns:
        a Builder instance
        Throws:
        IOException - if I/O errors occur.
        URISyntaxException - if this URL is not formatted strictly according to to RFC2396 and cannot be converted to a URI.