@Test public void testDetectWithCustomConfig() throws Exception { assertEquals("application/xml", AdvancedTypeDetector.detectWithCustomConfig("pom.xml")); }
public static String detectWithCustomConfig(String name) throws Exception { String config = "/org/apache/tika/mime/tika-mimetypes.xml"; Tika tika = new Tika(MimeTypesFactory.create(config)); return tika.detect(name); }
AdvancedTypeDetector { public static String detectWithCustomConfig(String name) throws Exception { String config = "/org/apache/tika/mime/tika-mimetypes.xml"; Tika tika = new Tika(MimeTypesFactory.create(config)); return tika.detect(name); } }
AdvancedTypeDetector { public static String detectWithCustomConfig(String name) throws Exception { String config = "/org/apache/tika/mime/tika-mimetypes.xml"; Tika tika = new Tika(MimeTypesFactory.create(config)); return tika.detect(name); }  }
AdvancedTypeDetector { public static String detectWithCustomConfig(String name) throws Exception { String config = "/org/apache/tika/mime/tika-mimetypes.xml"; Tika tika = new Tika(MimeTypesFactory.create(config)); return tika.detect(name); }  static String detectWithCustomConfig(String name); static String detectWithCustomDetector(String name); }
AdvancedTypeDetector { public static String detectWithCustomConfig(String name) throws Exception { String config = "/org/apache/tika/mime/tika-mimetypes.xml"; Tika tika = new Tika(MimeTypesFactory.create(config)); return tika.detect(name); }  static String detectWithCustomConfig(String name); static String detectWithCustomDetector(String name);  }