FileInstanciator.InstanciationType videoType = new FileInstanciator.InstanciationType(Setting.getVideoSetting());
FileInstanciator.CommentInstanciationType commentType = new FileInstanciator.CommentInstanciationType(Setting.
- getCommentSetting(), Setting.getCommentGetInfo().isselfAdjustCommentNum(), Setting.getCommentGetInfo().
+ getCommentSetting(), Setting.getCommentGetInfo().isSelfAdjustCommentNum(), Setting.getCommentGetInfo().
getBackComment());
FileInstanciator.InstanciationType tcommType = new FileInstanciator.InstanciationType(
String tag, String time) throws
IOException {
FileInstanciator getter;
- if (videoType.isDoanload() || commentType.isDoanload() || tcommType.isDoanload()) {
+ if (videoType.isDownload() || commentType.isDownload() || tcommType.isDownload()) {
getter = new WebFileInstanciator(stopFlag, videoType, commentType, tcommType, li, tag, time);
} else {
getter = new FileInstanciator(videoType, commentType, tcommType, tag);
this.initFile = fileSetting.getFile().getFile();
}
- public boolean isDoanload() {
+ public boolean isDownload() {
return download;
}
throw new IOException(tag + "の情報の取得に失敗", ex);
}
- if (videoType.isDoanload()) {
+ if (videoType.isDownload()) {
setVideoFileGetter(new VideoFileWebGetter(client, videoInfo));
}
- if (commentType.isDoanload()) {
+ if (commentType.isDownload()) {
setCommentFileGetter(new CommentFileWebGetter(client, videoInfo, commentInfo, commentType.isAutoCommentNum(),
commentType.getBackComment()));
}
- if (tcommType.isDoanload()) {
+ if (tcommType.isDownload()) {
setTcommFileGetter(new TcommFileWebGetter(client, videoInfo));
}
}
package saccubus.converter.profile;
/**
- *
+ * コメント取得に関するプロファイルです.
* @author yuki
*/
public class CommentGetInfo {
+ /** コメント取得数を自動調整するのであればtrue. */
private final boolean selfAdjustCommentNum;
+ /** コメント取得数を自動調整しない場合の取得数. */
private final int backComment;
public CommentGetInfo(boolean selfAdjustCommentNum, int backComment) {
this.backComment = backComment;
}
- public boolean isselfAdjustCommentNum() {
+ public boolean isSelfAdjustCommentNum() {
return selfAdjustCommentNum;
}