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

Enable getExtension() for mime strings with parameters

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Trivial
    • Resolution: Fixed
    • None
    • 1.10
    • core
    • None

    Description

      getExtension() offers a handy way to add a "detected" extension from a MimeType for a file that didn't come with an extension. However, this functionality doesn't work with texty files: html, xml, css, csv, etc.

      Let's add a static helper class (or build it into MimeType?) that will output an extension for all mime types including texty mime types.

      Attachments

        1. MimeUtilTest.java
          2 kB
          Tim Allison

        Activity

          People

            Unassigned Unassigned
            tallison Tim Allison
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: