Uploaded image for project: 'Commons CSV'
  1. Commons CSV
  2. CSV-133

incorrect / obsolete JavaDoc for CSVParser

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Trivial
    • Resolution: Unresolved
    • 1.0, 1.1
    • None
    • Documentation

    Description

      In CSV-131, you asked for more reports, so here we go

      The JavaDoc for public static CSVParser parse(final File file, final Charset charset, final CSVFormat format) seems to be obsolete. It says

      <p><strong>Note:</strong> This method internally creates a FileReader using {@link java.io.FileReader#FileReader(java.io.File)} which in turn relies on the default encoding of the JVM that is executing the code. If this is insufficient create a URL to the file and use {@link #parse(URL, Charset, CSVFormat)}</p>

      ... which is clearly no longer the case since the method now takes a charset as a parameter and creates a "FileInputStreamReader" with this charset.

      Attachments

        Activity

          People

            Unassigned Unassigned
            HolgerS Holger Stratmann
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:

              Time Tracking

                Estimated:
                Original Estimate - 10m
                10m
                Remaining:
                Remaining Estimate - 10m
                10m
                Logged:
                Time Spent - Not Specified
                Not Specified