-
mime-util 2.0 Released (8 messages)
- Posted by: Steven McArdle
- Posted on: June 03 2009 10:19 EDT
We are pleased to announce the release of mime-util 2.0 and it's new web site at http://www.medsea.eu/mime-util. This is a major upgrade to the previous 1.3 release. There are many changes to the mime-util core, some of which are not backward compatible with previous releases. Most notably here is the removal of the static initialisation blocks from the MimeDetector(s). This means that your code will now have to specifically register the MimeDetector(s) you wish to use, using their fully qualified class names as in MimeUtil.registerMimeDetector(“eu.medsea.mimeutil.detector.ExtensionMimeDetector”);. The only exception to the rule above, is the new TextMimeDetector, this is registered by default and cannot be de-registered. However, it is effectively disabled out-of-the-box. This new MimeDetector is capable of analysing text content from all of the supported sources and creates instances of TextMimeType that extend the eu.medsea.mimeutil.MimeType adding an encoding attribute. This MimeDetector uses a new utility class eu.medsea.util.EncodingGuesser to assist in the detection and can be used standalone in your applications if needed. You can read how to configure the TextMimeDetector with encodings and custom handlers at http://www.medsea.eu/mime-util/detectors.html. Other changes include the removal of all depricated classes and methods, a change of logging dependency from commons-logging to SLF4J and addition meta-data added to the jar manifest file enabling mime-util to be deployed as an OSGi bundle in an OSGi container such as Equinox and Knopflerfish. We would suggest upgrading projects using mime-util 1.x to this new release ASAP as we have some more exciting stuff in the pipe line and we do not foresee any changes to the 2.0 public API in the near future. See the web sites “Whats Next?” link for more details regarding upcoming features and enhancements. Regards Steven McArdleThreaded Messages (8)
- Looks Great. Have a specific need for this ! by Nicholas Whitehead on June 03 2009 13:49 EDT
- MIME type from byte array by Steven McArdle on June 03 2009 15:05 EDT
- gae/j friendly? by Adrian Cole on June 03 2009 20:30 EDT
- gae/j friendly? by Steven McArdle on June 04 2009 09:55 EDT
- 2.1 and gae/j by Adrian Cole on June 07 2009 07:07 EDT
- gae/j friendly? by Steven McArdle on June 04 2009 09:55 EDT
- :) by club stork on April 22 2013 03:51 EDT
- hello by Matt Coleman on April 23 2013 02:54 EDT
- good day by Matt Coleman on May 24 2013 02:01 EDT
-
Looks Great. Have a specific need for this ![ Go to top ]
- Posted by: Nicholas Whitehead
- Posted on: June 03 2009 13:49 EDT
- in response to Steven McArdle
Hey Steven; This looks really good, based on a quick look through the docs an API. I particularly like the idea of being able to determine a mime type from a byte array. If I understand the API correctly, if I have a byte array in Java, I can call MagicMimeMimeDetector and it [might] tell me that the byte array is a GIF, or XML or perhaps even a serialized Java class. Is that approximately correct ? //Nicholas -
MIME type from byte array[ Go to top ]
- Posted by: Steven McArdle
- Posted on: June 03 2009 15:05 EDT
- in response to Nicholas Whitehead
Hi Nicholas, That's exactly correct. As long as the magic.mime files have rules to identify the type then it will be detected. If the magic.mime files on your system do not have magic rules for the type you are after, you can always add your own to one of the locations identified in the JavaDoc for the MagicMimeMimeDetector. It may be worth looking at the web page http://www.medsea.eu/mime-util/detectors.html for the MimeDetector(s) which give a slightly more "human" readable description of the MimeDetector(s) supported by mime-util "out-of-the-box" Regards Steven McArdle -
gae/j friendly?[ Go to top ]
- Posted by: Adrian Cole
- Posted on: June 03 2009 20:30 EDT
- in response to Steven McArdle
I had considered a previous version of mime-util, but became discouraged as I needed to run this in google app engine for java. Have you tested this against the gae/j sandbox? If so, a quick gotcha page would be useful. -
gae/j friendly?[ Go to top ]
- Posted by: Steven McArdle
- Posted on: June 04 2009 09:55 EDT
- in response to Adrian Cole
Hi Adrian, The answer to your question is no we haven't. However, because of your comment I have raised an internal ticket for support and we will see what we can do for the mime-util 2.1 release in about a weeks time. For your information the 2.1 release will fix a minor bug with the collection type returned from the MimeUtil.getMimeTypes(URL url) method. Additional functionality has been added to the getMimeType(URL url) method enabling mime-util to detect MIME types directly from the entries in Zip and Jar files using the existing MimeDetector(S). We will also release a new MimeDetector which can get the "Content Type" associated with a file extension from the Windows Registry. We would like mime-util to be a "one-stop-shop" for MIME detection and to help us achieve this we rely on people, such as yourself, to provide us with feedback regarding problems in different environments and or use cases. We do hope you will give mime-util another try, and most of all we would like your feedback on your problems while trying to run mime-util in your particular environment. We will always do our best to resolve issues. Best Regards Steven McArdle -
2.1 and gae/j[ Go to top ]
- Posted by: Adrian Cole
- Posted on: June 07 2009 19:07 EDT
- in response to Steven McArdle
Thanks for being so attentive! I'll keep an eye out for 2.1, and love to use it, if it pans out. -Adrian jclouds -
:)[ Go to top ]
- Posted by: club stork
- Posted on: April 22 2013 03:51 EDT
- in response to Steven McArdle
oh,happy day! stork club movie -
hello[ Go to top ]
- Posted by: Matt Coleman
- Posted on: April 23 2013 02:54 EDT
- in response to Steven McArdle
best day ever! buffalo ny SEO -
good day[ Go to top ]
- Posted by: Matt Coleman
- Posted on: May 24 2013 02:01 EDT
- in response to Steven McArdle
mime-util 2.0 is the best http://www.bartendertrainingsource.com