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("
\93®
\89æ
\82Ì
\83_
\83E
\83\93\83\8d\81[
\83h
\8aJ
\8en
\92\86");
30 File res = client.getVideo(videoInfo, file, listener);
32 throw new IOException("
\93®
\89æ
\83t
\83@
\83C
\83\8b\82Ì
\83_
\83E
\83\93\83\8d\81[
\83h
\82É
\8e¸
\94s
\82µ
\82Ü
\82µ
\82½
\81B");