Search in sources :

Example 1 with Organizer

use of org.fagu.fmv.mymedia.classify.Organizer in project fmv by f-agu.

the class Bootstrap method main.

/**
 * @param args
 * @throws IOException
 */
public static void main(String[] args) throws IOException {
    File source = new File(args[0]);
    File saveFile = new File(source, "image.save");
    File destFolder = new File(source.getParentFile(), source.getName() + "-out");
    Bootstrap bootstrap = new Bootstrap();
    try (ImageFinder imageFinder = bootstrap.findImage(saveFile, source)) {
        Organizer<ImageFinder, Image> organizer = new Organizer<>(Image.class);
        organizer.organize(destFolder, imageFinder);
    }
}
Also used : Organizer(org.fagu.fmv.mymedia.classify.Organizer) ImageFinder(org.fagu.fmv.mymedia.file.ImageFinder) Image(org.fagu.fmv.im.Image) File(java.io.File)

Example 2 with Organizer

use of org.fagu.fmv.mymedia.classify.Organizer in project fmv by f-agu.

the class Bootstrap method main.

/**
 * @param args
 * @throws IOException
 */
public static void main(String[] args) throws IOException {
    File source = new File(args[0]);
    File saveFile = new File(source, "movie.save");
    File destFolder = new File(source.getParentFile(), source.getName() + "-mv-out");
    Bootstrap bootstrap = new Bootstrap();
    try (MovieFinder movieFinder = bootstrap.findMovie(saveFile, source)) {
        Organizer<MovieFinder, Movie> organizer = new Organizer<>(Movie.class);
        organizer.organize(destFolder, movieFinder);
    }
}
Also used : Organizer(org.fagu.fmv.mymedia.classify.Organizer) MovieFinder(org.fagu.fmv.mymedia.file.MovieFinder) File(java.io.File)

Aggregations

File (java.io.File)2 Organizer (org.fagu.fmv.mymedia.classify.Organizer)2 Image (org.fagu.fmv.im.Image)1 ImageFinder (org.fagu.fmv.mymedia.file.ImageFinder)1 MovieFinder (org.fagu.fmv.mymedia.file.MovieFinder)1