提交 7b301b9e authored 作者: Thomas Mueller's avatar Thomas Mueller

An archive tool that uses chunk sorting and compression

上级 f67093b9
差异被折叠。
...@@ -26,9 +26,9 @@ import org.h2.store.fs.FileUtils; ...@@ -26,9 +26,9 @@ import org.h2.store.fs.FileUtils;
import org.h2.util.New; import org.h2.util.New;
/** /**
* An archiver tool that can compress directories. * An archive tool to compress directories, using the MVStore backend.
*/ */
public class Archiver { public class ArchiveToolStore {
private static final int[] RANDOM = new int[256]; private static final int[] RANDOM = new int[256];
private static final int MB = 1000 * 1000; private static final int MB = 1000 * 1000;
...@@ -50,7 +50,7 @@ public class Archiver { ...@@ -50,7 +50,7 @@ public class Archiver {
* @param args the command line arguments * @param args the command line arguments
*/ */
public static void main(String... args) throws Exception { public static void main(String... args) throws Exception {
Archiver app = new Archiver(); ArchiveToolStore app = new ArchiveToolStore();
String arg = args.length != 3 ? null : args[0]; String arg = args.length != 3 ? null : args[0];
if ("-compress".equals(arg)) { if ("-compress".equals(arg)) {
app.fileName = args[1]; app.fileName = args[1];
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论