Skip to content

Commit

Permalink
Neuere Version von SuperCSV
Browse files Browse the repository at this point in the history
  • Loading branch information
jverein committed Feb 7, 2016
1 parent d1de424 commit 56fd3cd
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .classpath
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<classpathentry combineaccessrules="false" kind="src" path="/hibiscus"/>
<classpathentry kind="lib" path="lib/activation.jar"/>
<classpathentry kind="lib" path="/hibiscus/lib/hbci4java-2.5.12.jar" sourcepath="/hibiscus/lib.src/hbci4java-2.5.12-src.zip"/>
<classpathentry kind="lib" path="lib/SuperCSV-1.52.jar"/>
<classpathentry exported="true" kind="lib" path="/Users/heiner/git/jverein/lib/super-csv-2.4.0.jar" sourcepath="lib.src/super-csv-2.4.0-sources.jar"/>
<classpathentry kind="lib" path="lib/bsh-core-2.0b4.jar"/>
<classpathentry kind="lib" path="/hibiscus/lib/itextpdf-5.3.3.jar"/>
<classpathentry exported="true" kind="lib" path="lib/csvjdbc.jar"/>
Expand Down
Binary file added lib.src/super-csv-2.4.0-sources.jar
Binary file not shown.
Binary file removed lib/SuperCSV-1.52.jar
Binary file not shown.
Binary file added lib/super-csv-2.4.0.jar
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -365,9 +365,8 @@ public void run(ProgressMonitor monitor) throws ApplicationException
{
try
{
CsvPreference csvp = CsvPreference.EXCEL_PREFERENCE;
csvp.setDelimiterChar(';');
ICsvMapWriter writer = new CsvMapWriter(new FileWriter(file), csvp);
ICsvMapWriter writer = new CsvMapWriter(new FileWriter(file),
CsvPreference.EXCEL_NORTH_EUROPE_PREFERENCE);

final String[] header = new String[] { "name", "vorname", "strasse",
"adressierungszusatz", "plz", "ort", "anrede", "telefonprivat",
Expand Down
7 changes: 3 additions & 4 deletions src/de/jost_net/JVerein/io/ATBankdatei.java
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
import org.supercsv.cellprocessor.constraint.NotNull;
import org.supercsv.cellprocessor.constraint.UniqueHashCode;
import org.supercsv.cellprocessor.ift.CellProcessor;
import org.supercsv.exception.SuperCSVException;
import org.supercsv.io.CsvMapReader;
import org.supercsv.io.ICsvMapReader;
import org.supercsv.prefs.CsvPreference;
Expand All @@ -31,13 +30,13 @@ public class ATBankdatei
public ATBankdatei(InputStream is) throws IOException
{
CsvPreference pref = CsvPreference.EXCEL_NORTH_EUROPE_PREFERENCE;
pref.setDelimiterChar(';');
csvreader = new CsvMapReader(new InputStreamReader(is), pref);
header = csvreader.getCSVHeader(true);
header = csvreader.getHeader(true);

processors = getProcessors();
}

public ATBank next() throws SuperCSVException, IOException
public ATBank next() throws IOException
{
Map<String, ? super Object> bankMap;
if ((bankMap = csvreader.read(header, processors)) != null)
Expand Down

0 comments on commit 56fd3cd

Please sign in to comment.