Class IngestDomainList
- java.lang.Object
-
- dk.netarkivet.harvester.datamodel.IngestDomainList
-
public class IngestDomainList extends Object
Utility class for ingesting new domains into the database.
-
-
Field Summary
Fields Modifier and Type Field Description protected static org.slf4j.Logger
log
The logger.
-
Constructor Summary
Constructors Constructor Description IngestDomainList()
Constructor for the IngestDomainList class.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
updateDomainInfo(File domainList, javax.servlet.jsp.JspWriter out, Locale theLocale)
Adds all new domains from a newline-separated file of domain names.
-
-
-
Method Detail
-
updateDomainInfo
public void updateDomainInfo(File domainList, javax.servlet.jsp.JspWriter out, Locale theLocale)
Adds all new domains from a newline-separated file of domain names. The file is assumed to be in the UTF-8 format. For large files, a line is printed to the log, and to the out variable (if not set to null), every PRINT_INTERVAL lines.- Parameters:
domainList
- the file containing the domain names.out
- a stream to which output can be sent. May be null.theLocale
- the given Locale
-
-