Class FileCommandOption
java.lang.Object
org.lockss.laaws.crawler.impl.pluggable.command.CommandOption
org.lockss.laaws.crawler.impl.pluggable.command.FileCommandOption
Representation of a file command line option.
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.lockss.laaws.crawler.impl.pluggable.command.CommandOption
getLongKey, getValue, setValue
-
Constructor Details
-
FileCommandOption
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 Listwhere to add this command line option, if appropriate. - Throws:
IOException- if there are problems processing this command line.
-