Questions tagged [supercsv]

Super CSV is a fast and free open-source CSV API for Java.

Super CSV is a fast and free open-source CSV API for Java, written by Kasper Graversen.

The developers of Super CSV follow this tag, so you can receive expert advice on your Super CSV problems by using this tag.

Before asking a question, check the documentation and examples on the project website.

Please note that you can also receive help at the project's GitHub site, as well as report any issues you have encountered.

Related Links:

202 questions
0
votes
1 answer

Java to CSV file, SuperCSV Dozer: How to avoid looping for a nested object

I have the below classes.. SurveyResponse.java import java.util.List; public class SurveyResponse { private int age; private Boolean consentGiven; private List answers; public SurveyResponse() { } public SurveyResponse(final int age,…
Rtn9
  • 101
  • 10
0
votes
1 answer

Issue with SuperCSV - SuperCsvReflectionException

I'm using SuperCSV to parse a CSV file. The problem i'm having is I have 3 other classes - Office, Vehicle and Car. I've made OFfice The Grasp Creator so it creates objects of type Vehicle, and Vehicle exntends Car. The class called ImportCSV…
Harry
  • 467
  • 1
  • 5
  • 14
0
votes
1 answer

SuperCsvException CellProcessorNumber processing google contacts csv exports

I am using SuperCsv to process contact csv files from different sources. Number of columns is the same and there is a header in file so I want to use the CsvBeanReader. Has different sources have different columns and header titles, I am building…
Yves Nicolas
  • 6,901
  • 7
  • 25
  • 40
0
votes
1 answer

Java- Writing huge data to csv

I am just trying to write huge data which is fetching from mysql db to CSV by using supercsv. How simply I can manage the performance issue. Does super csv write with some limits?
thilo
  • 127
  • 1
  • 3
  • 11
0
votes
1 answer

Is it possible to read two files at once in Super CSV?

As in the title is in Super CSV possibility to read two files at once. The code below show the example for one file.csv: public class Reading { private static final String CSV_FILENAME1 = "src/test/resources/test1/customers.csv"; public…
user3455638
  • 569
  • 1
  • 6
  • 17
0
votes
0 answers

SUPERCSV OutOfMemoryError: Java heap space in CsvListReader

I know this question is being asked before Limit CsvListReader to one line i am facing the same issue, can you please tell me what changes made to tokenizer to overcome this issue... In my case it is occurring in different line number everytime, it…
0
votes
1 answer

CellProcessor for MapEntry

I have a simple POJO that has a Map inside it. public class Product { public Map map; } then my csv looks like this: "mapEntry1","mapEntry2","mapEntry3" So I created a custom cell processor for parsing those: public class…
Petar Tahchiev
  • 4,336
  • 4
  • 35
  • 48
0
votes
1 answer

SuperCSV missing package in JAR

This sounds silly but I can't find the package org.supercsv.mock in any JAR file i've downloaded for SuperCSV. Does anyone know where this package is located?
Harry
  • 467
  • 1
  • 5
  • 14
0
votes
1 answer

SuperCSV and Dozer

I'm working on building a piece of software in which input is csv file data which can have 90k plus rows of data in single file. Just to inform file will not have HEADER row at all it will start with data itself. Through googling I came to super csv…
Amit Vyas
  • 790
  • 3
  • 10
0
votes
1 answer

SuperCSV, Dozer: Writing to a csv file. For Object with a list into multiple rows

I have a class A which has few properties: class A { private String col1; private String col2; private List bList; // setters and getters } Class B { private String b1; private String b2; //setters and getters } I am trying to write this into…
user2033853
  • 133
  • 1
  • 8
0
votes
1 answer

SuperCSV with null delimiter

I'm creating a file that isn't really a csv file, but SuperCSV can help me to make the creation of this file easier. The structure of the file uses different lengths for each line, following a layout that don't separate the different information.…
brevleq
  • 2,081
  • 10
  • 53
  • 97
0
votes
2 answers

supercsv how to get column value array by column name

Here is an example of csv file: customerNo,firstName,lastName,birthDate,mailingAddress,married,numberOfKids,favouriteQuote,email,loyaltyPoints 1,John,Dunbar,13/06/1945,"1600 Amphitheatre Parkway Mountain View, CA 94043 United States",,,"""May the…
Jusleong
  • 571
  • 5
  • 10
  • 27
0
votes
1 answer

How to always apply quotes (escape) in Super CSV

i would like to put my file csv like this forma: "User 2";"Web Page" ;"AbdelMonem NAAMANE";;;; i make my own Csv Preference like that: private static final CsvPreference myPreference = new CsvPreference.Builder('"',';''\n').build(); i would…
Hamdi Dousdou
  • 57
  • 1
  • 12
0
votes
0 answers

supercsv writing form database

I am getting some issue with SuperCSV writing. I have created a web application module to export CSV file from DB.so the problem is how i can work with CustomerBean i find this code but the customer here is static: final CustomerBean john = new…
Hamdi Dousdou
  • 57
  • 1
  • 12
0
votes
1 answer

Using both CSVListReader and CSVBeanreader in superCSV

I want to read different CSV files which have all a fixed column number but 2 different files have 2 different column numbers. All the files have a headerline. So I first use a CSVListReader to get the header and the column numbers and then…
Yves Nicolas
  • 6,901
  • 7
  • 25
  • 40