Appending Mime Types

2011-08-18 Thread Tom Grant
Is there a way to programmatically register new Mime Types? We have a way to plug-in new parsers, but I do not see a way to define new file types. I'd like to be able to contribute both the Mime Type definitions as well as the Parser implementations that parse them in a single plugin Jar file. Th

Re: Appending Mime Types

2011-08-22 Thread Nick Burch
On Thu, 18 Aug 2011, Tom Grant wrote: Is there a way to programmatically register new Mime Types? I think the expectation was that people finding gaps would open a new jira entry, and list the details of these mimetypes and then everyone would benefit from them! There shouldn't be many case

Re: Appending Mime Types

2011-08-22 Thread Tom Grant
Here's the use case that I'm attempting to solve. I have a customer with many legacy systems, some of which are completely custom. These systems have data files that will never be seen outside of their environment. For example, some are XML files with their own schemas. Some are similar to the

Re: Appending Mime Types

2011-08-23 Thread Nick Burch
On Mon, 22 Aug 2011, Tom Grant wrote: Here's the use case that I'm attempting to solve. I have a customer with many legacy systems, some of which are completely custom. These systems have data files that will never be seen outside of their environment. For example, some are XML files with th

Re: Appending Mime Types

2011-08-23 Thread Antoni Mylka
W dniu 2011-08-22 20:37, Tom Grant pisze: Here's the use case that I'm attempting to solve. I have a customer with many legacy systems, some of which are completely custom. These systems have data files that will never be seen outside of their environment. For example, some are XML files with

Re: Appending Mime Types

2011-08-23 Thread Tom Grant
Nick, I'm happy to do the work and contribute it as a patch. I guess I'm just looking for advice on the approach to ensure that what I provide does actually get incorporated. My particular use case is solved by adding the update methods to MimeTypesFactory (See last message), but I'm in a scenari

Re: Appending Mime Types

2011-08-23 Thread Tom Grant
The Parser conflict Jira issue I was referring to is TIKA-527 (Allow override mapping mime<-->parsers through config). We would need something similar for mime types. The updates to MimeTypesFactory might address TIKA-87 (MimeTypes should allow modif

Re: Appending Mime Types

2011-10-06 Thread Nick Burch
On Tue, 23 Aug 2011, Tom Grant wrote: I personally like the approach of loading the standard /org/apache/tika/mime/tika-mimetypes.xml file, followed by any and all META-INF/tika-mimetypes.xml resources using the ServiceLoader class, followed by an optional tika-mimetypes.xml resource from the cla