0
플랫 파일이 입력되어 있습니다. Smooks를 사용하여 플랫 파일을 한 줄씩 읽어야합니다. 누구든지 제안이나 샘플 코드를 제공 할 수 있습니까?smooks를 사용하여 줄 단위로 플랫 파일 읽기
플랫 파일이 입력되어 있습니다. Smooks를 사용하여 플랫 파일을 한 줄씩 읽어야합니다. 누구든지 제안이나 샘플 코드를 제공 할 수 있습니까?smooks를 사용하여 줄 단위로 플랫 파일 읽기
다음은 Smooks 구성 파일 (SmooksConfig_ForFlatFile.xml)입니다. 여기
가 입력 파일 (입력 messages.txt) 남성 30NL eleonor 여기
FileOutputStream fos = new FileOutputStream("FlatFile_Output.xml");
smooks.filterSource(new StreamSource(new FileInputStream("input-message.txt")), new StreamResult(fos));
콘텐츠 파일 fl> "http://www.milyn.org/xsd/smooks/fixed-length-1.3.xsd"> \t \t smooks-resource-list> –
Vishnu
입력 내용 message.txt의 내용 charles moulliard 남성 43BE maxence dewil 남성 30NL eleonor moulliard 여성 12AD – Vishnu