Package dk.netarkivet.archive.tools
Class GetFile
- java.lang.Object
-
- dk.netarkivet.common.tools.ToolRunnerBase
-
- 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
Constructors Constructor Description GetFile()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description 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
-
-
-
-
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 classToolRunnerBase
- Returns:
- an instance of GetFileTool.
-
-