Tika
  1. Tika
  2. TIKA-296

Automatically set the supertype for "+xml" mimetypes

    Details

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

      Description

      The MimeTypes.forName() method currently has special-case code that auto-sets a mimetype's supertype (parent) to be text/plain if the mimetype name starts with "text/".

      Likewise, it should auto-set the supertype to be "application/xml" if the mimetype name ends with "+xml".

      1. tika-296.patch
        6 kB
        Ken Krugler

        Issue Links

          Activity

            People

            • Assignee:
              Jukka Zitting
              Reporter:
              Ken Krugler
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development