sitelink1 | http://ostermiller.org/utils/CSV.html |
---|---|
sitelink2 | |
sitelink3 | |
extra_vars4 | |
extra_vars5 | |
extra_vars6 |
Writing CSV files: CSVPrinter
CSVPrinter csvp = new CSVPrinter(
System.out
);
// Write to the printer
csvp.writeln(
new String[]{
"hello","world"
}
);
Reading CSV files: CSVParser
String[][] values = CSVParser.parse(
new StringReader(
"hello,worldn" +
"how,are,you"
)
); // Display the parsed data
for (int i=0; i<values.length; i++){
for (int j=0; j<values[i].length; j++){
System.out.println(values[i][j]);
}
System.out.println("-----");
}
기타 CSV 관련
Example
// Create the printerCSVPrinter csvp = new CSVPrinter(
System.out
);
// Write to the printer
csvp.writeln(
new String[]{
"hello","world"
}
);
Reading CSV files: CSVParser
Example
// Parse the dataString[][] values = CSVParser.parse(
new StringReader(
"hello,worldn" +
"how,are,you"
)
); // Display the parsed data
for (int i=0; i<values.length; i++){
for (int j=0; j<values[i].length; j++){
System.out.println(values[i][j]);
}
System.out.println("-----");
}
기타 CSV 관련
Author | License | Features |
---|---|---|
Stephen Ostermiller ostermillerutils CSV and ExcelCSV for Java | Open source, GPL | Parses CSV streams into Java Strings or arrays of Strings. |
Ricebridge CSV Manager | Commercial, with various license price points. | Parses CSV streams with callback methods when data is found. Single CSV parsing class can be configured to parse standard CSV, Excel CSV, or other user specified variants. |
E.Allen Soard Java CSV Library | Open source, LGPL | Parses CSV files into Java objects contained entirely in memory. |
Nilo de Roock xlSQL | Open source, GPL | Provides a JDBC interface for accessing CSV files. |
Bruce Dunwiddie CsvReader | Commercial, with various license price points. | Reads CSV files one line at a time and values may be obtained by name (similar to LabeledCSVParser) or by index. Single CSV parsing class can be configured to parse standard CSV, Excel CSV, or other user specified variants. A .Net version of the parser is also available. |
댓글 0
번호 | 제목 | 글쓴이 | 날짜 | 조회 수 |
---|---|---|---|---|
18 | POI HSSF 기능 가이드 -- 퀵·가이드 (영문) | 황제낙엽 | 2008.05.15 | 297 |
17 |
Comma Separated Values (CSV) - au.com.bytecode.opencsv
![]() | 황제낙엽 | 2007.01.23 | 857 |
» | Comma Separated Values (CSV) - com.Ostermiller.util Java Utilities | 황제낙엽 | 2007.01.23 | 266 |
15 | 엑셀(Excel)문서 처리 패키지 | 황제낙엽 | 2007.01.22 | 1437 |
14 | JUnit 간단 정리 | 황제낙엽 | 2007.09.17 | 81 |
13 | JUnit 3.8에서 JUnit 4, TestNG 활용으로 | 황제낙엽 | 2007.09.17 | 421 |
12 | 이클립스에 JUnit Test 환경 설정하기 | 황제낙엽 | 2007.08.28 | 102 |
11 | log4j에서 여러파일에 로그남기기 | 황제낙엽 | 2007.09.04 | 61 |
10 | Unitils 를 이용해 Spring Test의 편리성 획득하기 | 황제낙엽 | 2007.09.04 | 128 |
9 | Assertions : 비교 확인, 조건 확인, Null 확인 | 황제낙엽 | 2007.09.03 | 209 |
8 | JUnit 4로 뛰어들기 (한글) | 황제낙엽 | 2007.09.03 | 180 |
7 | Test-Driven Development by JUnit | 황제낙엽 | 2006.02.21 | 150 |
6 | jWebUnit 프레임웍으로 웹 애플리케이션 테스트를 간단하게 | 황제낙엽 | 2006.02.21 | 69 |
5 | [re] jWebUnit 프레임웍 로그인 테스트 예제 | 황제낙엽 | 2006.02.22 | 70 |
4 | jWebUnit 의 원조 HttpUnit | 황제낙엽 | 2006.02.23 | 70 |
3 | Junit 을 이용한 효율적인 단위 테스트 전략 | 황제낙엽 | 2007.01.30 | 368 |
2 | JUnit의 구조 | 황제낙엽 | 2007.07.25 | 88 |
1 | Log4j 웹에서 사용하기 | 황제낙엽 | 2007.05.13 | 95 |