Class CrawlertrapsUtils


  • public class CrawlertrapsUtils
    extends Object
    Some utilities for validation of crawlertraps.
    • Field Detail

      • log

        protected static final org.slf4j.Logger log
    • Constructor Detail

      • CrawlertrapsUtils

        public CrawlertrapsUtils()
    • Method Detail

      • isCrawlertrapsWellformedXML

        public static boolean isCrawlertrapsWellformedXML​(List<String> traps)
        Test one or more lines for being XML wellformed.
        Parameters:
        traps - one or more strings
        Returns:
        false if exception is thrown during validation or validation false; otherwise true
      • isCrawlertrapsWellformedXML

        public static boolean isCrawlertrapsWellformedXML​(String line)
        Test one line for being XML wellformed.
        Parameters:
        line - a line being tested for wellformedness
        Returns:
        false if exception is thrown during validation or validation false; otherwise true