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

MimeType.getExtension()

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 0.9
    • mime
    • None

    Description

      This patch adds getExtension() method to MimeType and support for reading mime-types from mime.types format.

      I added mime.types file from Fedora Linux, license says that it is public domain file:

      ===
      Red Hat disclaims any copyright on the "mailcap" and "mime-types" files and places them in the public domain. You are
      free to do whatever you wish with these files.

      The mailcap.4 man page is under an MIT license:

      Copyright (c) 1991 Bell Communications Research, Inc. (Bellcore)

      Permission to use, copy, modify, and distribute this material
      for any purpose and without fee is hereby granted, provided
      that the above copyright notice and this permission notice
      appear in all copies, and that the name of Bellcore not be
      used in advertising or publicity pertaining to this
      material without the specific, prior written permission
      of an authorized representative of Bellcore. BELLCORE
      MAKES NO REPRESENTATIONS ABOUT THE ACCURACY OR SUITABILITY
      OF THIS MATERIAL FOR ANY PURPOSE. IT IS PROVIDED "AS IS",
      WITHOUT ANY EXPRESS OR IMPLIED WARRANTIES.

      Tom Callaway, Fedora Legal, Red Hat
      Thu Sep 17, 2009
      ===

      (we do not need man page, only mime.types file)

      getExtension() method can be used for creating friendly filename for OLE-embedded files, streams and other cases when name is not known

      Attachments

        1. 0001-TIKA-573-add-MimeType.getExtension.patch
          6 kB
          Maxim Valyanskiy
        2. TIKA-573.patch
          52 kB
          Maxim Valyanskiy

        Activity

          People

            Unassigned Unassigned
            maxim.valyanskiy Maxim Valyanskiy
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: