Package dk.netarkivet.harvester.utils
Class CrawlertrapsUtils
- java.lang.Object
-
- dk.netarkivet.harvester.utils.CrawlertrapsUtils
-
public class CrawlertrapsUtils extends Object
Some utilities for validation of crawlertraps.
-
-
Field Summary
Fields Modifier and Type Field Description protected static org.slf4j.Logger
log
-
Constructor Summary
Constructors Constructor Description CrawlertrapsUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static boolean
isCrawlertrapsWellformedXML(String line)
Test one line for being XML wellformed.static boolean
isCrawlertrapsWellformedXML(List<String> traps)
Test one or more lines for being XML wellformed.
-
-
-
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
-
-