Package tv.hd3g.fflauncher
Class FFbase
- java.lang.Object
-
- tv.hd3g.fflauncher.ConversionTool
-
- tv.hd3g.fflauncher.FFbase
-
- All Implemented Interfaces:
tv.hd3g.processlauncher.tool.ExecutableTool
public class FFbase extends ConversionTool
-
-
Field Summary
-
Fields inherited from class tv.hd3g.fflauncher.ConversionTool
APPEND_PARAM_AT_END, execName, inputSources, outputExpectedDestinations, parameters, PREPEND_PARAM_AT_START
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description FFbaseaddSimpleInputSource(File file, String... sourceOptions)Define cmd var name like <%IN_AUTOMATIC_n%> with "n" the # of setted sources.FFbaseaddSimpleInputSource(File file, List<String> sourceOptions)Define cmd var name like <%IN_AUTOMATIC_n%> with "n" the # of setted sources.FFbaseaddSimpleInputSource(String sourceName, String... sourceOptions)Define cmd var name like <%IN_AUTOMATIC_n%> with "n" the # of setted sources.FFbaseaddSimpleInputSource(String sourceName, List<String> sourceOptions)Define cmd var name like <%IN_AUTOMATIC_n%> with "n" the # of setted sources.ConversionTooladdSimpleOutputDestination(File destinationFile)Define cmd var name like <%OUT_AUTOMATIC_n%> with "n" the # of setted destination.ConversionTooladdSimpleOutputDestination(String destinationName)Define cmd var name like <%OUT_AUTOMATIC_n%> with "n" the # of setted destination.voidbeforeRun(tv.hd3g.processlauncher.ProcesslauncherBuilder processBuilder)List<Filter>checkFiltersAvailability(tv.hd3g.processlauncher.cmdline.ExecutableFinder executableFinder)Predicate<String>filterOutErrorLines()FFAboutgetAbout(tv.hd3g.processlauncher.cmdline.ExecutableFinder executableFinder)protected PrintStreamgetStdErrPrintStreamToDisplayLinesEvents()booleanisHidebanner()booleanisLogLevelSet()booleanisNeverOverwriteOutputFiles()booleanisOverwriteOutputFiles()FFbasesetHidebanner()FFbasesetLogLevel(FFLogLevel level, boolean repeat, boolean display_level)Add like -loglevel repeat+level+verboseFFbasesetNeverOverwriteOutputFiles()FFbasesetOverwriteOutputFiles()-
Methods inherited from class tv.hd3g.fflauncher.ConversionTool
addInputSource, addInputSource, addInputSource, addInputSource, addOutputDestination, addOutputDestination, addOutputDestination, addOutputDestination, checkDestinations, checkSources, cleanUpOutputFiles, fixIOParametredVars, getDeclaredDestinationByVarName, getDeclaredDestinations, getDeclaredSourceByVarName, getDeclaredSources, getExecutableName, getFilterForLinesEventsToDisplay, getInternalParameters, getMaxExecTime, getMaxExecTimeScheduler, getOutputFiles, getParametersVariables, getReadyToRunParameters, getStdOutPrintStreamToDisplayLinesEvents, getWorkingDirectory, isCheckSourcesBeforeReady, isOnErrorDeleteOutFiles, isRemoveParamsIfNoVarToInject, onMissingInputOutputVar, patchVarName, setCheckSourcesBeforeReady, setFilterForLinesEventsToDisplay, setMaxExecTimeScheduler, setMaxExecutionTimeForShortCommands, setOnErrorDeleteOutFiles, setRemoveParamsIfNoVarToInject, setWorkingDirectory
-
-
-
-
Constructor Detail
-
FFbase
public FFbase(String execName, tv.hd3g.processlauncher.cmdline.Parameters parameters)
-
-
Method Detail
-
beforeRun
public void beforeRun(tv.hd3g.processlauncher.ProcesslauncherBuilder processBuilder)
- Specified by:
beforeRunin interfacetv.hd3g.processlauncher.tool.ExecutableTool- Overrides:
beforeRunin classConversionTool
-
getStdErrPrintStreamToDisplayLinesEvents
protected PrintStream getStdErrPrintStreamToDisplayLinesEvents()
- Overrides:
getStdErrPrintStreamToDisplayLinesEventsin classConversionTool
-
setLogLevel
public FFbase setLogLevel(FFLogLevel level, boolean repeat, boolean display_level)
Add like -loglevel repeat+level+verbose
-
isLogLevelSet
public boolean isLogLevelSet()
-
setHidebanner
public FFbase setHidebanner()
-
isHidebanner
public boolean isHidebanner()
-
setOverwriteOutputFiles
public FFbase setOverwriteOutputFiles()
-
isOverwriteOutputFiles
public boolean isOverwriteOutputFiles()
-
setNeverOverwriteOutputFiles
public FFbase setNeverOverwriteOutputFiles()
-
isNeverOverwriteOutputFiles
public boolean isNeverOverwriteOutputFiles()
-
addSimpleInputSource
public FFbase addSimpleInputSource(String sourceName, String... sourceOptions)
Define cmd var name like <%IN_AUTOMATIC_n%> with "n" the # of setted sources. Add -i parameter Add now in current Parameters the new add var only if not exists (you should call fixIOParametredVars, if you have add manually vars in Parametres)
-
addSimpleInputSource
public FFbase addSimpleInputSource(File file, String... sourceOptions)
Define cmd var name like <%IN_AUTOMATIC_n%> with "n" the # of setted sources. Add -i parameter Add now in current Parameters the new add var only if not exists (you should call fixIOParametredVars, if you have add manually vars in Parametres)
-
addSimpleInputSource
public FFbase addSimpleInputSource(String sourceName, List<String> sourceOptions)
Define cmd var name like <%IN_AUTOMATIC_n%> with "n" the # of setted sources. Add -i parameter Add now in current Parameters the new add var only if not exists (you should call fixIOParametredVars, if you have add manually vars in Parametres)
-
addSimpleInputSource
public FFbase addSimpleInputSource(File file, List<String> sourceOptions)
Define cmd var name like <%IN_AUTOMATIC_n%> with "n" the # of setted sources. Add -i parameter Add now in current Parameters the new add var only if not exists (you should call fixIOParametredVars, if you have add manually vars in Parametres)
-
addSimpleOutputDestination
public ConversionTool addSimpleOutputDestination(String destinationName)
Define cmd var name like <%OUT_AUTOMATIC_n%> with "n" the # of setted destination. Add now in current Parameters the new add var only if not exists (you should call fixIOParametredVars, if you have add manually vars in Parametres)- Overrides:
addSimpleOutputDestinationin classConversionTool
-
addSimpleOutputDestination
public ConversionTool addSimpleOutputDestination(File destinationFile)
Define cmd var name like <%OUT_AUTOMATIC_n%> with "n" the # of setted destination. Add now in current Parameters the new add var only if not exists (you should call fixIOParametredVars, if you have add manually vars in Parametres)- Overrides:
addSimpleOutputDestinationin classConversionTool
-
getAbout
public FFAbout getAbout(tv.hd3g.processlauncher.cmdline.ExecutableFinder executableFinder)
-
checkFiltersAvailability
public List<Filter> checkFiltersAvailability(tv.hd3g.processlauncher.cmdline.ExecutableFinder executableFinder)
-
-