Uploaded image for project: 'Tika'
  1. Tika
  2. TIKA-308

Improve supertype handling in type registry

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 0.4
    • 0.8
    • mime
    • None

    Description

      When processing tika-mimetypes.xml, additional supertype information should be set so that the right parser gets called if there's no explicit parser for that mime-type.

      Jukka suggested:

      The type registry could do with some implicit supertype settings like the following (in order):

      • a type with an explicit <sub-class-of/> setting is a specialization
        of the specified type
      • a type with parameters is a specialization of the same type without parameters
      • all /+xml types are specializations of application/xml
      • all text/* types are specializations of text/plain
      • everything is a specialization of application/octet-stream

      Attachments

        Issue Links

          Activity

            People

              jukkaz Jukka Zitting
              kkrugler Kenneth William Krugler
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: