Package dk.netarkivet.archive.tools
Class GetRecord
- java.lang.Object
-
- dk.netarkivet.common.tools.ToolRunnerBase
-
- dk.netarkivet.archive.tools.GetRecord
-
public class GetRecord extends ToolRunnerBase
A command-line tool to get ARC records from the bitarchive. Requires an Lucene index fileUsage: java dk.netarkivet.archive.tools.GetRecord indexfile uri > myrecord.arcrec
-
-
Constructor Summary
Constructors Constructor Description GetRecord()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static void
main(String[] argv)
Main method.protected SimpleCmdlineTool
makeMyTool()
Method for creating the simple command line tool.-
Methods inherited from class dk.netarkivet.common.tools.ToolRunnerBase
runTheTool, showMessage
-
-
-
-
Method Detail
-
main
public static void main(String[] argv)
Main method. Reads a record from the bitarchive and copies it to stdout. Setup, teardown and run is delegated to the GetRecordTool class. Management of this, exception handling etc. is delegated to ToolRunnerBase class.- Parameters:
argv
- Takes two command line paramers: - indexdir (the Lucene index directory) - uri (the URI to get the record from)
-
makeMyTool
protected SimpleCmdlineTool makeMyTool()
Method for creating the simple command line tool.- Specified by:
makeMyTool
in classToolRunnerBase
- Returns:
- The commandline tool for GetRecord.
-
-