Class LicenseHeaderFilter
java.lang.Object
org.jclouds.scriptbuilder.functionloader.filters.LicenseHeaderFilter
- All Implemented Interfaces:
FunctionLoader
FunctionLoader decorator to filters out license header comments from a file.
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
LicenseHeaderFilter
-
-
Method Details
-
loadFunction
Description copied from interface:FunctionLoaderLoads a function and returns it asString.- Specified by:
loadFunctionin interfaceFunctionLoader- Parameters:
function- The function name to load.family- This operating system family of the function.- Returns:
- The function as
String. - Throws:
FunctionNotFoundException
-
filter
Filters out license header comments from a file.- Parameters:
lines- The lines to filter.family- TheOsFamilyof the file.- Returns:
- The filtered file.
-