
org.jwat.tools.tasks.interval.IntervalTaskCLI 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.interval;
import org.jwat.tools.tasks.TaskCLI;
import com.antiaction.common.cli.CommandLine;
public class IntervalTaskCLI extends TaskCLI {
public static final String commandName = "interval";
public static final String commandDescription = "interval extract";
@Override
public void show_help() {
System.out.println("jwattools [-o] interval offset1 offset2 srcfile dstfile");
System.out.println("");
System.out.println("extract the byte interval from offset1 to offset2 from a file");
System.out.println("");
System.out.println("\tSkips data up to offset1 and save data to file until offset2 is reached.");
System.out.println("\tOffset1/2 can be decimal or hexadecimal ($ or 0x).");
System.out.println("\tOffset2 can also be a length-ofsset (+).");
/*
System.out.println("");
System.out.println("options:");
System.out.println("");
*/
}
@Override
public void runtask(CommandLine cmdLine) {
IntervalTask task = new IntervalTask();
task.runtask(IntervalTaskCLIParser.parseArguments(cmdLine));
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy