|
|
@ -27,6 +27,7 @@ import cokr.xit.fims.base.Backup;
|
|
|
|
import cokr.xit.fims.base.service.bean.AdminBean;
|
|
|
|
import cokr.xit.fims.base.service.bean.AdminBean;
|
|
|
|
import cokr.xit.fims.cmmn.DirectoryStructureToJson;
|
|
|
|
import cokr.xit.fims.cmmn.DirectoryStructureToJson;
|
|
|
|
import cokr.xit.fims.cmmn.DirectoryStructureToJson.Node;
|
|
|
|
import cokr.xit.fims.cmmn.DirectoryStructureToJson.Node;
|
|
|
|
|
|
|
|
import cokr.xit.fims.cmmn.Hangul;
|
|
|
|
import cokr.xit.fims.crdn.service.ImportService;
|
|
|
|
import cokr.xit.fims.crdn.service.ImportService;
|
|
|
|
import cokr.xit.foundation.data.DataObject;
|
|
|
|
import cokr.xit.foundation.data.DataObject;
|
|
|
|
import cokr.xit.interfaces.smg.service.SmgService;
|
|
|
|
import cokr.xit.interfaces.smg.service.SmgService;
|
|
|
@ -181,8 +182,9 @@ public class AdminController extends ApplicationController {
|
|
|
|
|
|
|
|
|
|
|
|
int inputData = 0;
|
|
|
|
int inputData = 0;
|
|
|
|
try {
|
|
|
|
try {
|
|
|
|
|
|
|
|
Hangul hangul = new Hangul(3);
|
|
|
|
BufferedReader br = new BufferedReader(new InputStreamReader(new FileInputStream(path),Charset.forName("EUC-KR")));
|
|
|
|
String detect = hangul.detect(path);
|
|
|
|
|
|
|
|
BufferedReader br = new BufferedReader(new InputStreamReader(new FileInputStream(path),Charset.forName(detect)));
|
|
|
|
|
|
|
|
|
|
|
|
while ((inputData = br.read()) != -1) {
|
|
|
|
while ((inputData = br.read()) != -1) {
|
|
|
|
sb.append((char)inputData) ;
|
|
|
|
sb.append((char)inputData) ;
|
|
|
|