apache-commons-csv Questions

7

Solved

I have been looking for the past 2 hours for a solution to my problem in vain. I'am trying to read a CSV File using Apache commons ,I am able to read the whole file but my problem is how to extract...
Hurlburt asked 28/3, 2016 at 19:13

9

Solved

I want to skip the first line and use the second as header. I am using classes from apache commons csv to process a CSV file. The header of the CSV file is in the second row, not the first (which...
St asked 24/8, 2017 at 12:35

5

Solved

I got this error message happening when I'm trying to read a csv: Exception in thread "main" java.lang.IllegalStateException: No header mapping was specified, the record values can't be accessed b...
Alaynaalayne asked 5/12, 2014 at 19:53

4

I am trying to read a CSV file with certain headers into a Java object using Apache Commons CSV. However, when I run the code, I get the following exeption: Exception in thread "main" java.lang.Il...
Gardiner asked 6/12, 2018 at 1:15

3

In my case, valid CSV are ones delimited by either comma or semi-colon. I am open to other libraries, but it needs to be Java. Reading through the Apache CSVParser API, the only thing I can think i...
Elegance asked 12/8, 2015 at 0:21

5

Solved

I am using Commons CSV to parse CSV content relating to TV shows. One of the shows has a show name which includes double quotes; 116,6,2,29 Sep 10,""JJ" (60 min)","http://www.tvmaze.com/episodes/...
Raby asked 22/6, 2017 at 10:48

5

I am getting the following error while parsing the CSV file using the Apache Commons CSV library. Exception in thread "main" java.io.IOException: (line 2) invalid char between encapsulated token a...
Pickens asked 4/11, 2014 at 7:30

2

Solved

Initially I had the following code: Attempt 1 try (var output = new ByteArrayOutputStream(); var printer = new CSVPrinter(new OutputStreamWriter(output), CSVFormat.DEFAULT)) { printer.printReco...
Citizenry asked 27/11, 2019 at 19:28

1

At some point my code needs to touch a CSVRecord and I can't figure out a way to create a mock version of it. The class is final so it can't be mocked. The constructor is private so I can't creat...
Builder asked 16/1, 2017 at 6:9

1

Solved

how to write CSV File in UTF-8 via Apache CSV? I am trying generate csv by following code where Files.newBufferedWriter() encode text into UTF-8 by default, but when I open generated text in excel...
Vexation asked 19/7, 2019 at 12:11

3

Solved

I'm using the apache.commons.csv library in Java. I'm reading a CSV file from a web page with this code: InputStream input = new URL(url).openStream(); Reader reader = new InputStreamReader(input...
Roxy asked 29/3, 2016 at 15:47

2

Solved

I am using apache commons CSV to write csv files. I want to stick to this library. While I am writing a csv file, in the first column of generated file, it contains double quotes as quote character...
Stomy asked 6/7, 2015 at 23:46

2

I have a large .csv file (about 300 MB), which is read from a remote host, and parsed into a target file, but I don't need to copy all the lines to the target file. While copying, I need to read ea...
Hypogeous asked 20/8, 2015 at 16:51

3

Solved

I have a 37 column CSV file that I am parsing in Java with Apache Commons CSV 1.2. My setup code is as follows: //initialize FileReader object FileReader fileReader = new FileReader(file); //inti...
Boehm asked 15/4, 2016 at 17:15

1

Solved

When reading the following TSV snippet with Apache Commons CSV: Name DOB SIN Address, contact information "Patience Middleton" "18-4-87" 720463771 "varius Cras sem aliquam taciti fames hendrerit t...
Argive asked 11/3, 2016 at 19:17

3

Solved

Is there a built-in feature in Apache CSV implementation to ignore header case when reading csv? Some time ago we have implemented utility for converting CSV export files to SQL. For that we have ...
Noah asked 28/4, 2015 at 5:53
1

© 2022 - 2024 — McMap. All rights reserved.