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

CSVParser: Add factory method accepting InputStream

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Trivial
    • Resolution: Fixed
    • Affects Version/s: 1.4
    • Fix Version/s: 1.5
    • Component/s: Parser
    • Labels:
      None
    • Environment:

      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

            • Assignee:
              Unassigned
              Reporter:
              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