sitelink1 http://ostermiller.org/utils/CSV.html 
sitelink2  
sitelink3  
extra_vars4  
extra_vars5  
extra_vars6  
Writing CSV files: CSVPrinter

 

Example

// Create the printer
CSVPrinter csvp = new CSVPrinter(
    System.out
);
// Write to the printer
csvp.writeln(
    new String[]{
        "hello","world"
    }
);



Reading CSV files: CSVParser

Example

// Parse the data
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 관련

AuthorLicenseFeatures
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.
번호 제목 글쓴이 날짜 조회 수
58 셀 크기 조정 (자동 크기 조정) 황제낙엽 2011.05.03 7819
57 Cell 의 wrap 설정 (텍스트 개행) file 황제낙엽 2011.05.09 3125
56 병합된 셀의 스타일( border) 설정하기 황제낙엽 2011.05.03 1761
55 POI HSSF, XSSF, SXSSF 성능 분석 file 황제낙엽 2013.11.05 1663
54 Parsing and Processing Large XML Documents with Digester Rules (해석중) file 황제낙엽 2008.05.13 1571
53 POI 셀 스타일 설정을 위한 예제 소스 file 황제낙엽 2008.05.16 1464
52 엑셀(Excel)문서 처리 패키지 황제낙엽 2007.01.22 1458
51 POI-HSSF and POI-XSSF - Java API To Access Microsoft Excel Format Files 황제낙엽 2013.11.05 1137
50 Comma Separated Values (CSV) - au.com.bytecode.opencsv file 황제낙엽 2007.01.23 901
49 Parsing, indexing, and searching XML with Digester and Lucene 황제낙엽 2008.05.07 546
48 Library & Properties 파일 file 황제낙엽 2011.12.23 498
47 POI HSSF 기능 가이드 -- 퀵·가이드 (한글) 황제낙엽 2008.05.16 436
46 JUnit 3.8에서 JUnit 4, TestNG 활용으로 황제낙엽 2007.09.17 426
45 Junit 을 이용한 효율적인 단위 테스트 전략 황제낙엽 2007.01.30 372
44 XSSF Examples file 황제낙엽 2011.05.04 338
43 POI HSSF 기능 가이드 -- 퀵·가이드 (영문) 황제낙엽 2008.05.15 312
42 사용자 정의 Appender 정의하여 Log4j 확장하기 황제낙엽 2009.05.28 292
41 log4j-1.2.15.jar 와 log4j.properties 예제 file 황제낙엽 2017.08.04 286
40 Apache Log4j 2 Configuration 파일 설정 황제낙엽 2020.04.01 277
» Comma Separated Values (CSV) - com.Ostermiller.util Java Utilities 황제낙엽 2007.01.23 273