Class LicenseHeaderFilter
- java.lang.Object
-
- org.jclouds.scriptbuilder.functionloader.filters.LicenseHeaderFilter
-
- All Implemented Interfaces:
FunctionLoader
public class LicenseHeaderFilter extends Object implements FunctionLoader
FunctionLoader decorator to filters out license header comments from a file.
-
-
Constructor Summary
Constructors Constructor Description LicenseHeaderFilter(FunctionLoader delegate)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
filter(String lines, OsFamily family)
Filters out license header comments from a file.String
loadFunction(String function, OsFamily family)
Loads a function and returns it asString
.
-
-
-
Constructor Detail
-
LicenseHeaderFilter
public LicenseHeaderFilter(FunctionLoader delegate)
-
-
Method Detail
-
loadFunction
public String loadFunction(String function, OsFamily family) throws FunctionNotFoundException
Description copied from interface:FunctionLoader
Loads a function and returns it asString
.- Specified by:
loadFunction
in interfaceFunctionLoader
- Parameters:
function
- The function name to load.family
- This operating system family of the function.- Returns:
- The function as
String
. - Throws:
FunctionNotFoundException
-
-