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

CSVParser: Add factory method accepting InputStream

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Trivial
    • Resolution: Fixed
    • 1.4
    • 1.5
    • Parser
    • None
    • all

    Description

      Please supply a CSVParser.parse operation accepting an InputStream, e.g.

      public static CSVParser parse(InputStream stream, final CSVFormat format) throws IOException {
              Assertions.notNull(stream, "stream");
              Assertions.notNull(format, "format");
      
              return new CSVParser(new InputStreamReader(stream), format);
      }
      

      This can be used more widely than File or String, and helps reading from resources (getClassLoader().getResourceAsStream()).

      Attachments

        Activity

          People

            Unassigned Unassigned
            PHolzwarth Peter Holzwarth
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - 1h
                1h
                Remaining:
                Remaining Estimate - 1h
                1h
                Logged:
                Time Spent - Not Specified
                Not Specified