|
package com.fr.output;
|
|
|
|
import java.io.BufferedReader;
|
|
import java.io.File;
|
|
import java.io.FileReader;
|
|
import java.io.IOException;
|
|
import java.util.Map;
|
|
|
|
import com.fr.log.FineLoggerFactory;
|
|
import com.fr.schedule.base.bean.output.BaseOutputAction;
|
|
import com.fr.schedule.base.constant.ScheduleConstants;
|
|
import com.fr.schedule.feature.output.OutputActionHandler;
|
|
import com.fr.stable.ArrayUtils;
|
|
|
|
public class readToCsv extends OutputActionHandler<BaseOutputAction> {
|
|
|
|
@Override
|
|
public void doAction(BaseOutputAction action, Map<String, Object> map) throws Exception {
|
|
read();
|
|
}
|
|
|
|
|
|
private void read() throws Exception{
|
|
//커스텀 클래스
|
|
FineLoggerFactory.getLogger().error("readToCsv Test _geonHeo");
|
|
File file = new File("C:\\WORKSPACE\\fileLoad.txt");
|
|
try (BufferedReader br = new BufferedReader(new FileReader(file))) {
|
|
String line;
|
|
while ((line = br.readLine()) != null) {
|
|
FineLoggerFactory.getLogger().error(line);
|
|
}
|
|
} catch (IOException e) {
|
|
e.printStackTrace();
|
|
}
|
|
}
|
|
|
|
|
|
}
|