Package dk.netarkivet.common.tools
Class ArcMerge
- java.lang.Object
-
- dk.netarkivet.common.tools.ToolRunnerBase
-
- dk.netarkivet.common.tools.ArcMerge
-
public class ArcMerge extends ToolRunnerBase
Command line tool for merging several ARC files into a single ARC file.Usage: java dk.netarkivet.common.tools.ArcMerge file1 [file2] ... > myarchive.arc
Note: Does not depend on logging - communicates failure on stderr
-
-
Constructor Summary
Constructors Constructor Description ArcMerge()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static void
main(String[] args)
Main method.protected SimpleCmdlineTool
makeMyTool()
Factory method.-
Methods inherited from class dk.netarkivet.common.tools.ToolRunnerBase
runTheTool, showMessage
-
-
-
-
Method Detail
-
main
public static void main(String[] args)
Main method. Reads all ARC files specified (as arguments) and outputs a merged ARC file on stdout.- Parameters:
args
- The command line arguments should be a list of ARC files to be merged. At least one input ARC file should be given.
-
makeMyTool
protected SimpleCmdlineTool makeMyTool()
Description copied from class:ToolRunnerBase
Factory method. Creates and returns the intended specific implementation of a command line tool.- Specified by:
makeMyTool
in classToolRunnerBase
- Returns:
- An implementation of the SimpleCmdlineTool interface.
-
-