소스 정리

main
이범준 1 year ago
parent afd63db048
commit e95c106533

@ -0,0 +1,19 @@
package cokr.xit.fims.crdn.parsing;
import java.nio.file.Path;
import java.util.List;
import java.util.stream.Stream;
import cokr.xit.foundation.data.DataObject;
public class Eli implements EquipmentEnterprise {
@Override
public List<DataObject> parsing(Stream<Path> fileList) {
//TODO:
return null;
}
}

@ -0,0 +1,19 @@
package cokr.xit.fims.crdn.parsing;
import java.nio.file.Path;
import java.util.List;
import java.util.stream.Stream;
import cokr.xit.foundation.data.DataObject;
public class Gasan implements EquipmentEnterprise {
@Override
public List<DataObject> parsing(Stream<Path> fileList) {
//TODO:
return null;
}
}

@ -0,0 +1,65 @@
package cokr.xit.fims.crdn.parsing;
import java.io.File;
import java.nio.file.Path;
import java.util.ArrayList;
import java.util.List;
import java.util.stream.Stream;
import cokr.xit.foundation.data.DataObject;
public class HiteCom implements EquipmentEnterprise {
@Override
public List<DataObject> parsing(Stream<Path> fileList) {
List<DataObject> dataObjectList = new ArrayList<>();
fileList.forEach(item -> {
DataObject dataObject = new DataObject();
File file = item.toFile();
String filePath = file.getPath();
dataObject.put("FILE_PATH", filePath);
String fileName = file.getName();
dataObject.put("FILE_NAME", fileName);
//TODO:
dataObject.put("text부사이즈", "");
dataObject.put("장비번호", "");
dataObject.put("속도", "");
dataObject.put("차종", "");
dataObject.put("차로", "");
dataObject.put("위반날짜", "");
dataObject.put("위반시간", "");
dataObject.put("차량번호", "");
dataObject.put("번호판시작X", "");
dataObject.put("번호판시작Y", "");
dataObject.put("번호판크기W", "");
dataObject.put("번호판크기H", "");
dataObject.put("번호판유무", "");
dataObject.put("위반코드", "");
dataObject.put("위반종류", "");
dataObject.put("정지선통과시", "");
dataObject.put("교차로선통과시", "");
dataObject.put("영상프레임수", "");
dataObject.put("신호등형태", "");
dataObject.put("진행형태", "");
dataObject.put("신호등종류", "");
dataObject.put("사진매수", "");
dataObject.put("plate", "");
dataObject.put("carNo", "");
dataObject.put("movingImage1", "");
dataObject.put("movingImage1", "");
dataObject.put("movingImage1", "");
dataObject.put("movingImage1", "");
dataObject.put("movingImage1", "");
dataObject.put("movingImage1", "");
dataObjectList.add(dataObject);
});
return dataObjectList;
}
}

@ -10,6 +10,9 @@ public class Knl implements EquipmentEnterprise {
@Override @Override
public List<DataObject> parsing(Stream<Path> fileList) { public List<DataObject> parsing(Stream<Path> fileList) {
//TODO:
return null; return null;
} }

@ -0,0 +1,62 @@
package cokr.xit.fims.crdn.parsing;
import java.nio.file.Path;
import java.util.List;
import java.util.stream.Stream;
import cokr.xit.foundation.data.DataObject;
public class XitRecommend implements EquipmentEnterprise{
@Override
public List<DataObject> parsing(Stream<Path> fileList) {
//TODO:
/*
1. :
20101224121055000_014_001_0.TXT ->
20101224121055000_014_001_1.JPG -> 1
20101224121055000_014_001_2.JPG -> 2
20101224121055000_014_001_3.JPG -> 3
20101224121055000_014_001_4.JPG -> 4
: Ansi
*/
//2. 파일 구조
//1) 파일 명명 규칙
// 가. 전체 길이 : 31
// 나. 파일명 포맷
// 연월일8 시분초6 마이크로초3 _ 업체코드3 _ 창비코드3 _ n .확장자
/*
2)
. : (,)
. CCTV TXT
- ,,,,,,
-
1) 111111,,,,,121010,122400
-
2) 011234,,,,,121010,122400
. CCTV TXT
- ,,,,,,
GPSX
GPSY
-
1) 111111,,,,,121010,122400
127.482432
37.362931
-
2) 011234,,,,,121010,122400
127.482432
37.362931
*/
return null;
}
}
Loading…
Cancel
Save