dk.netarkivet.harvester.datamodel
Class IngestDomainList

java.lang.Object
  extended by dk.netarkivet.harvester.datamodel.IngestDomainList

public class IngestDomainList
extends java.lang.Object

Utility class for ingesting new domains into the database.


Field Summary
protected  org.apache.commons.logging.Log log
           
 
Constructor Summary
IngestDomainList()
           
 
Method Summary
 void updateDomainInfo(java.io.File domainList, javax.servlet.jsp.JspWriter out, java.util.Locale theLocale)
          Adds all new domains from a newline-separated file of domain names.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

log

protected final org.apache.commons.logging.Log log
Constructor Detail

IngestDomainList

public IngestDomainList()
Method Detail

updateDomainInfo

public void updateDomainInfo(java.io.File domainList,
                             javax.servlet.jsp.JspWriter out,
                             java.util.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