
org.jwat.tools.tasks.decompress.DecompressTaskCLI Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jwat-tools Show documentation
Show all versions of jwat-tools Show documentation
JWAT-Tools uses the available JWAT libraries to make high level tasks available either from command-line or programmatically.
Common tasks include: Test, Compress, Decompress, CDX, Arc2Warc.
More specialised tasks include: Changed, ContainerMD, Delete, Extract, Interval, PathIndex, Unpack, Headers2CDX.
package org.jwat.tools.tasks.decompress;
import org.jwat.tools.tasks.TaskCLI;
import com.antiaction.common.cli.CommandLine;
public class DecompressTaskCLI extends TaskCLI {
public static final String commandName = "decompress";
public static final String commandDescription = "decompress ARC/WARC or normal GZip file(s)";
@Override
public void show_help() {
System.out.println("jwattools decompress [-w THREADS] ...");
System.out.println("");
System.out.println("decompress one or more GZip files");
System.out.println("");
System.out.println("\tNormal files are decompressed into one or more files.");
System.out.println("\tARC/WARC files are compressed on a record level.");
System.out.println("");
System.out.println("options:");
System.out.println("");
System.out.println(" --queue-first queue files before processing");
System.out.println(" -w set the amount of worker thread(s) (defaults to 1)");
}
@Override
public void runtask(CommandLine cmdLine) {
DecompressTask task = new DecompressTask();
task.runtask(DecompressTaskCLIParser.parseArguments(cmdLine));
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy