public class TikaMimeDetectorAdapter extends Object implements MimeDetectorAdapter
| Constructor and Description |
|---|
TikaMimeDetectorAdapter(org.apache.tika.Tika tika) |
| Modifier and Type | Method and Description |
|---|---|
String |
detect(Path file)
Returns the MIME type for the given file.
|
public TikaMimeDetectorAdapter(org.apache.tika.Tika tika)
public String detect(Path file) throws MimakException
detect in interface MimeDetectorAdapterfile - A non-null fileMimakException - If an error occurs and cannot detect the MIME type for the fileCopyright © 2017. All rights reserved.