dk.netarkivet.archive.tools
Class GetRecord

java.lang.Object
  extended by dk.netarkivet.common.tools.ToolRunnerBase
      extended by 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 file Usage: java dk.netarkivet.archive.tools.GetRecord indexfile uri > myrecord.arcrec


Constructor Summary
GetRecord()
           
 
Method Summary
static void main(java.lang.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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GetRecord

public GetRecord()
Method Detail

main

public static void main(java.lang.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 class ToolRunnerBase
Returns:
The commandline tool for GetRecord.