2 * To change this template, choose Tools | Templates
3 * and open the template in the editor.
5 package saccubus.converter.filegetter;
8 import java.io.IOException;
9 import saccubus.net.NicoClient;
10 import saccubus.net.TextProgressListener;
11 import saccubus.net.VideoInfo;
17 public class VideoFileWebGetter extends FileGetter {
19 private final NicoClient client;
20 private final VideoInfo videoInfo;
22 VideoFileWebGetter(NicoClient client, VideoInfo videoInfo) {
24 this.videoInfo = videoInfo;
28 File get(File file, TextProgressListener listener) throws IOException {
29 listener.setText("動画のダウンロード開始中");
30 File res = client.getVideo(videoInfo, file, listener);
32 throw new IOException("動画ファイルのダウンロードに失敗しました。");