if(line.contains("\"")){ while(!line.equals(line = line.replace("\"\"","\"")));  String[] pre = line.split("\"");  String[] tmpString; Vector<String> v = new Vector<String>(); for(int i=0; i< pre.length; i++){  if ((pre[i].indexOf(",")==0) || pre[i].lastIndexOf(",")==pre[i].length()-1) tmpString = pre[i].split(","); else { tmpString = new String[1]; tmpString[0] = pre[i];
if (line.contains("\"")) { while (!line.equals(line = line.replace("\"\"", "\""))) ;   String[] pre = line.split("\"");  String[] tmpString; Vector<String> v = new Vector<String>(); for (int i = 0; i < pre.length; i++) {  if ((pre[i].indexOf(",") == 0) || pre[i].lastIndexOf(",") == pre[i].length() - 1) tmpString = pre[i].split(","); else { tmpString = new String[1]; tmpString[0] = pre[i]; } for (int j = 0; j < tmpString.length; j++) v.add(tmpString[j]);
	public String[] splitCSVLine(String line){		String[] items;		//		Alle berflssigen " zusammenfassen		//line = line.trim();		if(line.contains("\"")){			while(!line.equals(line = line.replace("\"\"","\"")));		//jetzt zuerst am " splitten und danach nur falls der String ein "," am Anfang oder Ende enthlt		String[] pre = line.split("\"");		//  aaa,bbb,"ccc,ddd,eee",fff,ggg,hhh,"iii,jjj,kkk",lll,mmm		String[] tmpString;		Vector<String> v = new Vector<String>();		for(int i=0; i< pre.length; i++){			//falls der String ein "," am Anfang oder Ende enthlt			if ((pre[i].indexOf(",")==0) || pre[i].lastIndexOf(",")==pre[i].length()-1)				tmpString = pre[i].split(",");			else {				tmpString = new String[1];				tmpString[0] = pre[i];			}			for(int j =0; j< tmpString.length; j++)				v.add(tmpString[j]);		}				items = new String[v.capacity()];		v.copyInto(items);		}		else items = line.split(",");		return items;	}