Class 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 Detail

      • GetRecord

        public GetRecord()
    • 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)