Search in sources :

Example 1 with CustomMimeTypeResolver

use of ddf.mime.custom.CustomMimeTypeResolver in project ddf by codice.

the class ResourceReaderTest method setUp.

@Before
public void setUp() {
    MimeTypeResolver tikaResolver = new TikaMimeTypeResolver();
    this.customResolver = new CustomMimeTypeResolver();
    List<MimeTypeResolver> resolvers = new ArrayList<MimeTypeResolver>();
    resolvers.add(tikaResolver);
    resolvers.add(this.customResolver);
    this.mimeTypeMapper = new MimeTypeMapperImpl(resolvers);
}
Also used : TikaMimeTypeResolver(ddf.mime.tika.TikaMimeTypeResolver) MimeTypeResolver(ddf.mime.MimeTypeResolver) CustomMimeTypeResolver(ddf.mime.custom.CustomMimeTypeResolver) TikaMimeTypeResolver(ddf.mime.tika.TikaMimeTypeResolver) ArrayList(java.util.ArrayList) MimeTypeMapperImpl(ddf.mime.mapper.MimeTypeMapperImpl) CustomMimeTypeResolver(ddf.mime.custom.CustomMimeTypeResolver) Before(org.junit.Before)

Aggregations

MimeTypeResolver (ddf.mime.MimeTypeResolver)1 CustomMimeTypeResolver (ddf.mime.custom.CustomMimeTypeResolver)1 MimeTypeMapperImpl (ddf.mime.mapper.MimeTypeMapperImpl)1 TikaMimeTypeResolver (ddf.mime.tika.TikaMimeTypeResolver)1 ArrayList (java.util.ArrayList)1 Before (org.junit.Before)1