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()
          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

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()
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.