Hi there,

I recently (in the last couple of months) compiled my code against version 
0.8-SNAPSHOT of tika-app.  Today it no longer compiles because the 
isDescendantOf() method of the MimeTypes class has gone.
Could someone please advise on the replacement?  Here is my code for context:

    public boolean isSubTypeOf(String mimeType, String parentMimeType) throws 
Exception {
        boolean matches = false;

        if (mimeType.equals(parentMimeType)) {
            matches = true;

        } else {
            MimeTypes detector = getMagicMimeTypeIdentifier();

            MimeType hint = detector.forName(mimeType);
            MimeType parent = detector.forName(parentMimeType);

            matches = hint.isDescendantOf(parent);  //  <<<== no longer compiles
        }

        return matches;
    }

I typically use this method to determine if a file is some form of zip archive.

Thanks!

- Chris


Chris Bamford
Software Engineer

2 - 8 Balfe Street
Kings Cross,
London, N1 9EG

mobile 
tel: +44 (0) 207 843 2300
web www.mimecast.com


The information contained in this communication from [email protected] is 
confidential and may be legally privileged. It is intended solely for use by 
[email protected] and others authorized to receive it. If you are not 
[email protected] you are hereby notified that any disclosure, copying, 
distribution or taking action in reliance of the contents of this information 
is strictly prohibited and may be unlawful.


Mimecast Ltd. is a company registered in England and Wales with the company 
number 4698693 VAT No. GB 832 5179 29
Registered Office: 17 Heathman’s Road London, England, SW6 4TJ Email Address: 
[email protected]

This email message has been scanned for viruses by Mimecast.
Mimecast delivers a complete managed email solution from a single web based 
platform.
For more information please visit http://www.mimecast.com

<<inline: 110080315222702102.gif>>

<<inline: 110080315222702302.gif>>

Reply via email to