test_class.declarator: formatDetector
test_class.modifier: @Autowired
test_class.original_string: @Autowired
      CompositeFormatDetector formatDetector;
test_class.type: CompositeFormatDetector
test_class.var_name: formatDetector
test_class.file: dataprep-backend-service/src/test/java/org/talend/dataprep/schema/CompositeFormatDetectorTest.java
test_class.identifier: CompositeFormatDetectorTest
test_class.superclass: extends AbstractSchemaTestUtils
test_case.body: @Test
      public void guess_html_format_success() throws Exception {
  
          String fileName = "html/sales-force.xls";
  
          Format actual = formatDetector.detect(this.getClass().getResourceAsStream(fileName));
  
          assertTrue(actual.getFormatFamily() instanceof HtmlFormatFamily);
          assertEquals("ISO-8859-1", actual.getEncoding());
      }
test_case.class_method_signature: CompositeFormatDetectorTest.guess_html_format_success()
test_case.full_signature: @Test public void guess_html_format_success()
test_case.identifier: guess_html_format_success
test_case.invocations: detect getResourceAsStream getClass assertTrue getFormatFamily assertEquals getEncoding
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void guess_html_format_success()
focal_class.declarator: unsupportedFormatFamily
focal_class.modifier: @Autowired
      private
focal_class.original_string: @Autowired
      private UnsupportedFormatFamily unsupportedFormatFamily;
focal_class.type: UnsupportedFormatFamily
focal_class.var_name: unsupportedFormatFamily
focal_class.declarator: detectors
focal_class.modifier: @Autowired
      private
focal_class.original_string: @Autowired
      private List<Detector> detectors;
focal_class.type: List<Detector>
focal_class.var_name: detectors
focal_class.file: dataprep-backend-service/src/main/java/org/talend/dataprep/schema/CompositeFormatDetector.java
focal_class.identifier: CompositeFormatDetector
focal_class.interfaces: implements Detector
focal_class.class_method_signature: CompositeFormatDetector.detect(Metadata metadata, TikaInputStream inputStream)
focal_class.full_signature: @Override public Format detect(Metadata metadata, TikaInputStream inputStream)
focal_class.identifier: detect
focal_class.modifiers: @Override public
focal_class.parameters: (Metadata metadata, TikaInputStream inputStream)
focal_class.return: Format
focal_class.signature: Format detect(Metadata metadata, TikaInputStream inputStream)
focal_method.body: @Override
      public Format detect(Metadata metadata, TikaInputStream inputStream) throws IOException {
  
          Format result = null;
          for (Detector detector : detectors) {
              result = detector.detect(metadata, inputStream);
              if (result != null)
                  break;
          }
          if (result == null) {
              result = new Format(unsupportedFormatFamily, FormatUtils.DEFAULT_ENCODING);
          }
          return result;
      }
focal_method.class_method_signature: CompositeFormatDetector.detect(Metadata metadata, TikaInputStream inputStream)
focal_method.full_signature: @Override public Format detect(Metadata metadata, TikaInputStream inputStream)
focal_method.identifier: detect
focal_method.invocations: detect
focal_method.modifiers: @Override public
focal_method.parameters: (Metadata metadata, TikaInputStream inputStream)
focal_method.return: Format
focal_method.signature: Format detect(Metadata metadata, TikaInputStream inputStream)