org.vivoweb.harvester.translate
Class RunBibutils

java.lang.Object
  extended by org.vivoweb.harvester.translate.RunBibutils

public class RunBibutils
extends java.lang.Object

Author:
Michael Barbieri (mbarbier@ufl.edu) Executes the command-line tool bibutils on all files in the specified folder, converting from a type specified in command line.

Constructor Summary
RunBibutils(ArgList argList)
          Constructor
RunBibutils(java.lang.String[] args)
          Constructor
RunBibutils(java.lang.String bibutilsBasePath, java.lang.String inputFormat, RecordHandler inStore, RecordHandler outStore, boolean force)
          Constructor
 
Method Summary
 void execute()
          Convert all files in inputPath directory to MODS XML according to specified type
static void main(java.lang.String... args)
          Main method
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RunBibutils

public RunBibutils(java.lang.String bibutilsBasePath,
                   java.lang.String inputFormat,
                   RecordHandler inStore,
                   RecordHandler outStore,
                   boolean force)
Constructor

Parameters:
bibutilsBasePath - the folder for the bibutils executables
inputFormat - the format to convert from
inStore - the record handler for the input files.
outStore - the record handler for the converted MODS XML files
force - process all records even if they do not need to be processed

RunBibutils

public RunBibutils(java.lang.String[] args)
            throws java.io.IOException
Constructor

Parameters:
args - commandline arguments
Throws:
java.io.IOException - error creating task

RunBibutils

public RunBibutils(ArgList argList)
            throws java.io.IOException
Constructor

Parameters:
argList - option set of parsed args
Throws:
java.io.IOException - if an error occurred setting up a record handler
Method Detail

execute

public void execute()
             throws java.io.IOException
Convert all files in inputPath directory to MODS XML according to specified type

Throws:
java.io.IOException - if an error in reading or writing occurs

main

public static void main(java.lang.String... args)
Main method

Parameters:
args - commandline arguments