Class FileCommandOption

java.lang.Object
org.lockss.laaws.crawler.impl.pluggable.command.CommandOption
org.lockss.laaws.crawler.impl.pluggable.command.FileCommandOption

public class FileCommandOption extends CommandOption
Representation of a file command line option.
  • Constructor Details

    • FileCommandOption

      public FileCommandOption(String longKey)
      Constructor.
      Parameters:
      longKey - A String with the long key of the file command line option.
  • Method Details

    • process

      public static void process(String optionKey, Object jsonObject, File tmpDir, List<String> command) throws IOException
      Processes a file command line option.
      Parameters:
      optionKey - A String with the key of the option.
      jsonObject - An object with the JSON object that represents the value of the command line option.
      tmpDir - A File with the temporary directory where to create files referenced by this command line option.
      command - A List where to add this command line option, if appropriate.
      Throws:
      IOException - if there are problems processing this command line.