Class TSVFileReaderTask


  • public class TSVFileReaderTask
    extends FileDirectDataLoaderTask
    Read a file of tab separated values. Use one column as the key to look up objects and use the other columns to set fields in that object.
    Author:
    Kim Rutherford
    • Constructor Detail

      • TSVFileReaderTask

        public TSVFileReaderTask()
    • Method Detail

      • setConfigurationFile

        public void setConfigurationFile​(java.io.File configurationFile)
        Set the configuration file to use.
        Parameters:
        configurationFile - the configuration File
      • processFile

        public void processFile​(java.io.File file)
        Query all objects of the class given by the className specified in the configurationFile. Set fields in the objects by using the tab separated files as input.
        Specified by:
        processFile in class FileDirectDataLoaderTask
        Parameters:
        file - the File to process
        Throws:
        org.apache.tools.ant.BuildException - if an ObjectStore method fails