dk.netarkivet.archive.tools
Class GetFile

java.lang.Object
  extended by dk.netarkivet.common.tools.ToolRunnerBase
      extended by dk.netarkivet.archive.tools.GetFile

public class GetFile
extends ToolRunnerBase

A command-line tool to get ARC files from the bitarchive. Usage: java dk.netarkivet.archive.tools.GetFile arcfilename [destination-file]


Constructor Summary
GetFile()
           
 
Method Summary
static void main(java.lang.String[] argv)
          Main method.
protected  SimpleCmdlineTool makeMyTool()
          Create an instance of GetFileTool.
 
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

GetFile

public GetFile()
Method Detail

main

public static void main(java.lang.String[] argv)
Main method. Retrieves a file from the bitarchive and copies it to current working directory. Setup, teardown and run is delegated to the GetFileTool class. Management of this, exception handling etc. is delegated to ToolRunnerBase class.

Parameters:
argv - Takes one or two command line parameter: the name of the file to retrieve. optionally, the name of the destination file.

makeMyTool

protected SimpleCmdlineTool makeMyTool()
Create an instance of GetFileTool.

Specified by:
makeMyTool in class ToolRunnerBase
Returns:
an instance of GetFileTool.