All Downloads are FREE. Search and download functionalities are using the official Maven repository.

tgtools.tasklibrary.tasks.AnalysisSomeFileTask Maven / Gradle / Ivy

There is a newer version: 0.1.12
Show newest version
package tgtools.tasklibrary.tasks;

import tgtools.tasklibrary.entity.TableInfo;
import tgtools.tasklibrary.util.LogHelper;
import tgtools.tasks.TaskContext;

import java.util.List;

/**
 * 解析多个E文件
 */
public class AnalysisSomeFileTask extends AnalysisOneFileTask {
    /**
     * 解析一个文件,解析完成后移动到指定目录
     *
     * @param p_File
     * @param p_BackDir
     * @param p_Table
     */
    public AnalysisSomeFileTask(String p_File, String p_BackDir, TableInfo p_Table) {
        super(p_File, p_BackDir, p_Table);
    }
    public AnalysisSomeFileTask(String p_File, String p_BackDir, List p_Table) {
        super(p_File, p_BackDir, null);
        m_Tables=p_Table;
    }
    protected List m_Tables;
    @Override
    public void run(TaskContext p_Param) {
        LogHelper.info("AnalysisSomeFileTask 开始:" + m_File);
        try {
            if(null==m_Tables) {
            return ;
            }
            for(int i=0;i




© 2015 - 2024 Weber Informatics LLC | Privacy Policy