@Test public void testCanGetAlwaysSameTikaDetectorInstance() throws Exception { final TikaDetector tikaDetector1 = TikaDetector.tikaDetector(); final TikaDetector tikaDetector2 = TikaDetector.tikaDetector(); assertions.assertThat(tikaDetector1).isEqualTo(tikaDetector2); }
private TikaDetector() { final TikaConfig config = TikaConfig.getDefaultConfig(); detector = config.getDetector(); }
TikaDetector { private TikaDetector() { final TikaConfig config = TikaConfig.getDefaultConfig(); detector = config.getDetector(); } }
TikaDetector { private TikaDetector() { final TikaConfig config = TikaConfig.getDefaultConfig(); detector = config.getDetector(); } private  TikaDetector(); }
TikaDetector { private TikaDetector() { final TikaConfig config = TikaConfig.getDefaultConfig(); detector = config.getDetector(); } private  TikaDetector(); static TikaDetector tikaDetector(); org.springframework.http.MediaType detect(final InputStream inputStream, final String fileName); }
TikaDetector { private TikaDetector() { final TikaConfig config = TikaConfig.getDefaultConfig(); detector = config.getDetector(); } private  TikaDetector(); static TikaDetector tikaDetector(); org.springframework.http.MediaType detect(final InputStream inputStream, final String fileName);  }