Solr
  1. Solr
  2. SOLR-197

ContentStream +Reader and Utility classes

    Details

    • Type: Improvement Improvement
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.2
    • Component/s: None
    • Labels:
      None

      Description

      In parsing content streams, it is often easier to deal with a Reader.

      This patch adds getReader() to ContentStream

      This patch also

      • moves ContentStream to o.a.s.util - This class is needed for SOLR-20 and should be eventually be in a separate .jar (SOLR-135)
      • Adds three concrete ContentStream implementations: File/URL/String
      • Adds documentation
      • test cases for File/URL/String
      1. SOLR-197-ContentStreamReader.patch
        26 kB
        Ryan McKinley
      2. SOLR-197-ContentStreamReader.patch
        23 kB
        Ryan McKinley

        Issue Links

          Activity

          Hide
          Ryan McKinley added a comment -

          Added parameters for:
          stream.contentType
          stream.file

          stream.file uses a FileReader unless a charset is specified.

          see discussion on:
          http://www.nabble.com/charset-specification-for-input-streams-tf3470788.html

          Show
          Ryan McKinley added a comment - Added parameters for: stream.contentType stream.file stream.file uses a FileReader unless a charset is specified. see discussion on: http://www.nabble.com/charset-specification-for-input-streams-tf3470788.html
          Hide
          Yonik Seeley added a comment -

          Committed... Thanks Ryan!

          Show
          Yonik Seeley added a comment - Committed... Thanks Ryan!

            People

            • Assignee:
              Unassigned
              Reporter:
              Ryan McKinley
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development