Hi,
I'm currently working on a patch over @ Nutch which removes usage of
deprected classes. My compiler is flagging up use of the code snippet below
indicating that 'this.mimeTypes.getMimeType(url) is deprecated.
// if returned null, or if it's the default type then try url resolution
if (type == null
|| (type != null && type.getName().equals(MimeTypes.OCTET_STREAM)))
{
// If no mime-type header, or cannot find a corresponding registered
// mime-type, then guess a mime-type from the url pattern
type = this.mimeTypes.getMimeType(url) != null ? this.mimeTypes
.getMimeType(url) : type;
}
Looking @ Tika 0.10 Javadoc I see that in particular it's the call to
.getMimeType(url) which has been deprecated and we should be using
Tika.detect(URL) instead.
Can anyone please provide me with the correct syntax to fit this in here
*Thanks in advance for any help
Kind Regards
Lewis
p.s please can you copy me in on any email reply as I'm not officially
registered to this list. Thank you
*
--
*Lewis*