Search

2025-01-04

recordParser, fieldParser 동일 패턴 찾기
클래스 분리 및 책임 분리
public interface CSVParser<T> { /** * CSV 파싱을 수행하고, 그 결과를 반환. */ T parse(); default int incrementIfMatch(char[] targetString, char targetChar, int index) { return targetChar == targetString[index] ? index + 1 : 0; } }
Java
복사
// 동일 패키지 public class RecordParser implements CSVParser<List<Record>> {...} public class FieldParser implements CSVParser<List<String>> {...} public class CSVConfig {...} class InternalBuffer {...}
Java
복사