public Dumper(string bzipPath, DumpAction act, PerfCounter counter) { _action = act; _bzipReader = new BzipReader(bzipPath, _action, counter); _action.Decoder = _bzipReader; _action._notify = _bzipReader; }
public static Dumper CreateHtmlGenerater(string bzipPath, bool isJapanese, DirectoryInfoCache result, PerfCounter counter) { DumpAction htmlAction = DumpAction.CreateHtmlGeneraterAction(bzipPath, result.Item); var dumper = new Dumper(bzipPath, htmlAction, counter); SplitFolder sf = CreateSplitFolder(isJapanese, result); PostCreate(dumper, isJapanese, sf); return(dumper); }
public static Dumper CreateRawDumper(string bzipPath, bool isJapanese, DirectoryInfoCache result, PerfCounter counter) { DumpAction rawDump = DumpAction.CreateRawDumpAction(bzipPath, result.Item); Dumper dumper = new Dumper(bzipPath, rawDump, counter); SplitFolder sf = CreateSplitFolder(isJapanese, result); // not DRY! sf.InterestedFilePattern = "*.wiki"; PostCreate(dumper, isJapanese, sf); return(dumper); }