dk.netarkivet.common.tools
Class ArcMerge

java.lang.Object
  extended by dk.netarkivet.common.tools.ToolRunnerBase
      extended by 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
ArcMerge()
           
 
Method Summary
static void main(java.lang.String[] args)
          Main method.
protected  SimpleCmdlineTool makeMyTool()
          Factory method.
 
Methods inherited from class dk.netarkivet.common.tools.ToolRunnerBase
runTheTool, showMessage
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ArcMerge

public ArcMerge()
Method Detail

main

public static void main(java.lang.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 class ToolRunnerBase
Returns:
An implementation of the SimpleCmdlineTool interface.