package com.han.csv.util;
import java.io.BufferedReader;
import java.io.FileInputStream;
import java.io.InputStreamReader;
import java.util.ArrayList;
public class CSVFileUtil {
// CSV文件编码
public static final String ENCODE = "UTF-8";
private FileInputStream fis = null;
private InputStreamReader isw = null;
private BufferedReader br = null;
public CSVFileUtil(String filename) throws Exception {
fis = new FileInputStream(filename);
isw = new InputStreamReader(fis, ENCODE);
br = new BufferedReader(isw);
}
// ==========以下是公开方法=============================
/**
* 从e69da5e6ba9062616964757a686964616f31333366303761CSV文件流中读取一个CSV行。
*
* @throws Exception
*/
public String readLine() throws Exception {
StringBuffer readLine = new StringBuffer();
boolean bReadNext = true;
while (bReadNext) {
//
if (readLine.length() > 0) {