Link Details

Link 1049783 thumbnail
User 1181467 avatar

By alecn
via java.dzone.com
Submitted: Oct 15 2013 / 10:04

I’ve been doing some work reading in CSV files, for which I’ve been using OpenCSV. My initial approach worked when the contents of the file fit into memory, but was problematic for larger files where I needed to stream the file and process each line individually. After a few hours, I ended up with the following code.
  • 3
  • 0
  • 138
  • 35

Add your comment


Html tags not supported. Reply is editable for 5 minutes. Use [code lang="java|ruby|sql|css|xml"][/code] to post code snippets.

Voters For This Link (3)



Voters Against This Link (0)



    Apache Hadoop
    Written by: Piotr Krewski
    Featured Refcardz: Top Refcardz:
    1. Play
    2. Akka
    3. Design Patterns
    4. OO JS
    5. Cont. Delivery
    1. Play
    2. Java Performance
    3. Akka
    4. REST
    5. Java