Package org.apache.rat.commandline
Class Converters.FileConverter
java.lang.Object
org.apache.rat.commandline.Converters.FileConverter
- All Implemented Interfaces:
org.apache.commons.cli.Converter<File,NullPointerException>
- Enclosing class:
- Converters
public static final class Converters.FileConverter
extends Object
implements org.apache.commons.cli.Converter<File,NullPointerException>
A converter that can handle relative or absolute files.
-
Field Summary
Fields inherited from interface org.apache.commons.cli.Converter
CLASS, DATE, DEFAULT, FILE, NUMBER, OBJECT, PATH, URL -
Method Summary
Modifier and TypeMethodDescriptionApplies the conversion function to the specified file name.voidsetWorkingDirectory(DocumentName workingDirectory)Sets the working directory for the conversion.
-
Method Details
-
setWorkingDirectory
Sets the working directory for the conversion.- Parameters:
workingDirectory- current working directory
-
apply
Applies the conversion function to the specified file name.- Specified by:
applyin interfaceorg.apache.commons.cli.Converter<File,NullPointerException>- Parameters:
fileName- the file name to create a file from.- Returns:
- a File.
- Throws:
NullPointerException- iffileNameis null.
-