test_class.declarator: temporaryFolder = new TemporaryFolder(new File("target"))
test_class.modifier: @Rule
      public final
test_class.original_string: @Rule
      public final TemporaryFolder temporaryFolder = new TemporaryFolder(new File("target"));
test_class.type: TemporaryFolder
test_class.var_name: temporaryFolder
test_class.file: oak-run/src/test/java/org/apache/jackrabbit/oak/plugins/tika/TikaHelperTest.java
test_class.identifier: TikaHelperTest
test_case.body: @Test
      public void indexedTypes() throws Exception {
          File config = temporaryFolder.newFile();
          String configText = "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n" +
                  "<properties>\n" +
                  "  <detectors>\n" +
                  "    <detector class=\"org.apache.tika.detect.DefaultDetector\"/>\n" +
                  "  </detectors>\n" +
                  "  <parsers>\n" +
                  "    <parser class=\"org.apache.tika.parser.DefaultParser\"/>\n" +
                  "    <parser class=\"org.apache.tika.parser.EmptyParser\">\n" +
                  "      <mime>application/xml</mime>\n" +
                  "    </parser>\n" +
                  "  </parsers>\n" +
                  "</properties>";
          Files.write(configText, config, Charsets.UTF_8);
          TikaHelper tika = new TikaHelper(config);
          assertFalse(tika.isIndexed("application/xml"));
      }
test_case.class_method_signature: TikaHelperTest.indexedTypes()
test_case.full_signature: @Test public void indexedTypes()
test_case.identifier: indexedTypes
test_case.invocations: newFile write assertFalse isIndexed
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void indexedTypes()
focal_class.declarator: DEFAULT_TIKA_CONFIG = "/org/apache/jackrabbit/oak/plugins/index/lucene/tika-config.xml"
focal_class.modifier: private static final
focal_class.original_string: private static final String DEFAULT_TIKA_CONFIG = "/org/apache/jackrabbit/oak/plugins/index/lucene/tika-config.xml";
focal_class.type: String
focal_class.var_name: DEFAULT_TIKA_CONFIG
focal_class.declarator: log = LoggerFactory.getLogger(TikaHelper.class)
focal_class.modifier: private static final
focal_class.original_string: private static final Logger log = LoggerFactory.getLogger(TikaHelper.class);
focal_class.type: Logger
focal_class.var_name: log
focal_class.declarator: parser
focal_class.modifier: private final
focal_class.original_string: private final AutoDetectParser parser;
focal_class.type: AutoDetectParser
focal_class.var_name: parser
focal_class.declarator: supportedMediaTypes
focal_class.modifier: private final
focal_class.original_string: private final Set<MediaType> supportedMediaTypes;
focal_class.type: Set<MediaType>
focal_class.var_name: supportedMediaTypes
focal_class.declarator: supportedTypesLogged = new AtomicBoolean()
focal_class.modifier: private static
focal_class.original_string: private static AtomicBoolean supportedTypesLogged = new AtomicBoolean();
focal_class.type: AtomicBoolean
focal_class.var_name: supportedTypesLogged
focal_class.file: oak-run/src/main/java/org/apache/jackrabbit/oak/plugins/tika/TikaHelper.java
focal_class.identifier: TikaHelper
focal_class.class_method_signature: TikaHelper.TikaHelper(@Nullable File tikaConfig)
focal_class.full_signature: public  TikaHelper(@Nullable File tikaConfig)
focal_class.identifier: TikaHelper
focal_class.modifiers: public
focal_class.parameters: (@Nullable File tikaConfig)
focal_class.signature:  TikaHelper(@Nullable File tikaConfig)
focal_class.class_method_signature: TikaHelper.getParser()
focal_class.full_signature: public Parser getParser()
focal_class.identifier: getParser
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: Parser
focal_class.signature: Parser getParser()
focal_class.class_method_signature: TikaHelper.isSupportedMediaType(String type)
focal_class.full_signature: public boolean isSupportedMediaType(String type)
focal_class.identifier: isSupportedMediaType
focal_class.modifiers: public
focal_class.parameters: (String type)
focal_class.return: boolean
focal_class.signature: boolean isSupportedMediaType(String type)
focal_class.class_method_signature: TikaHelper.isIndexed(String type)
focal_class.full_signature: public boolean isIndexed(String type)
focal_class.identifier: isIndexed
focal_class.modifiers: public
focal_class.parameters: (String type)
focal_class.return: boolean
focal_class.signature: boolean isIndexed(String type)
focal_class.class_method_signature: TikaHelper.getTikaConfig(File tikaConfig)
focal_class.full_signature: private static TikaConfig getTikaConfig(File tikaConfig)
focal_class.identifier: getTikaConfig
focal_class.modifiers: private static
focal_class.parameters: (File tikaConfig)
focal_class.return: TikaConfig
focal_class.signature: TikaConfig getTikaConfig(File tikaConfig)
focal_class.class_method_signature: TikaHelper.getSupportingParser(Parser p, MediaType mediaType)
focal_class.full_signature: private static Parser getSupportingParser(Parser p, MediaType mediaType)
focal_class.identifier: getSupportingParser
focal_class.modifiers: private static
focal_class.parameters: (Parser p, MediaType mediaType)
focal_class.return: Parser
focal_class.signature: Parser getSupportingParser(Parser p, MediaType mediaType)
focal_class.class_method_signature: TikaHelper.unwrap(Parser p)
focal_class.full_signature: private static Parser unwrap(Parser p)
focal_class.identifier: unwrap
focal_class.modifiers: private static
focal_class.parameters: (Parser p)
focal_class.return: Parser
focal_class.signature: Parser unwrap(Parser p)
focal_class.class_method_signature: TikaHelper.logSupportedTypesOnce(Set<MediaType> supportedMediaTypes)
focal_class.full_signature: private static void logSupportedTypesOnce(Set<MediaType> supportedMediaTypes)
focal_class.identifier: logSupportedTypesOnce
focal_class.modifiers: private static
focal_class.parameters: (Set<MediaType> supportedMediaTypes)
focal_class.return: void
focal_class.signature: void logSupportedTypesOnce(Set<MediaType> supportedMediaTypes)
focal_method.body: public boolean isIndexed(String type) {
          if (!isSupportedMediaType(type)){
              return false;
          }
  
          MediaType mediaType = MediaType.parse(type);
          Parser p = getSupportingParser(parser, mediaType);
          if (p == null){
              return false;
          }
          p = unwrap(p);
          if (p instanceof EmptyParser){
              return false;
          }
          return true;
      }
focal_method.class_method_signature: TikaHelper.isIndexed(String type)
focal_method.full_signature: public boolean isIndexed(String type)
focal_method.identifier: isIndexed
focal_method.invocations: isSupportedMediaType parse getSupportingParser unwrap
focal_method.modifiers: public
focal_method.parameters: (String type)
focal_method.return: boolean
focal_method.signature: boolean isIndexed(String type)