@Test public void testGetConverterNames() { List<String> converterNames = mimeTypeTranslationHelper.getConverterNames("application/pdf", "text/plain"); assertEquals(2, converterNames.size()); assertTrue(converterNames.contains("toText1")); assertTrue(converterNames.contains("toText2")); converterNames = mimeTypeTranslationHelper.getConverterNames("foo", "text/plain"); assertEquals(1, converterNames.size()); assertEquals("wildcard", converterNames.get(0)); converterNames = mimeTypeTranslationHelper.getConverterNames("image/bmp", "image/jpg"); assertEquals(1, converterNames.size()); assertEquals("wildcard-subtype", converterNames.get(0)); converterNames = mimeTypeTranslationHelper.getConverterNames("image/png", "image/jpg"); assertEquals(1, converterNames.size()); assertEquals("toJpg1", converterNames.get(0)); }
public List<String> getConverterNames(String sourceMimeType, String destinationMimeType) { return getConverterNames(sourceMimeType, destinationMimeType, true); }
MimeTypeTranslationHelper { public List<String> getConverterNames(String sourceMimeType, String destinationMimeType) { return getConverterNames(sourceMimeType, destinationMimeType, true); } }
MimeTypeTranslationHelper { public List<String> getConverterNames(String sourceMimeType, String destinationMimeType) { return getConverterNames(sourceMimeType, destinationMimeType, true); }  }
MimeTypeTranslationHelper { public List<String> getConverterNames(String sourceMimeType, String destinationMimeType) { return getConverterNames(sourceMimeType, destinationMimeType, true); }  void addConverter(ConverterDescriptor desc); String getConverterName(String sourceMimeType, String destinationMimeType); String getConverterName(String sourceMimeType, String destinationMimeType, boolean allowWildcard); boolean hasCompatibleMimeType(List<String> mimeTypes, String mimeType); List<String> getConverterNames(String sourceMimeType, String destinationMimeType); List<String> getConverterNames(String sourceMimeType, String destinationMimeType, boolean allowWildcard); @Deprecated List<String> getDestinationMimeTypes(String sourceMimeType); @Deprecated List<String> getSourceMimeTypes(String destinationMimeType); void clear(); }
MimeTypeTranslationHelper { public List<String> getConverterNames(String sourceMimeType, String destinationMimeType) { return getConverterNames(sourceMimeType, destinationMimeType, true); }  void addConverter(ConverterDescriptor desc); String getConverterName(String sourceMimeType, String destinationMimeType); String getConverterName(String sourceMimeType, String destinationMimeType, boolean allowWildcard); boolean hasCompatibleMimeType(List<String> mimeTypes, String mimeType); List<String> getConverterNames(String sourceMimeType, String destinationMimeType); List<String> getConverterNames(String sourceMimeType, String destinationMimeType, boolean allowWildcard); @Deprecated List<String> getDestinationMimeTypes(String sourceMimeType); @Deprecated List<String> getSourceMimeTypes(String destinationMimeType); void clear(); static final String ANY_MIME_TYPE; static final Pattern MIME_TYPE_PATTERN; }