use of org.fagu.fmv.mymedia.classify.movie.MovieScriptConverter in project fmv by f-agu.
the class DefaultClassifierProvider method getConverter.
/**
* @see org.fagu.fmv.mymedia.classify.ClassifierProvider#getConverter(java.lang.Class)
*/
@SuppressWarnings("unchecked")
@Override
public <M extends Media> List<Converter<M>> getConverter(Class<? extends M> mediaCls, File destFolder) {
List<Converter<M>> list = new ArrayList<>();
list.add((Converter<M>) new MoveConverter(destFolder));
if (mediaCls == Image.class) {
list.add((Converter<M>) new ReduceImageConverter(destFolder));
} else if (mediaCls == Movie.class) {
list.add((Converter<M>) new MovieScriptConverter(destFolder));
}
return list;
}
Aggregations