Package ws.schild.jave.encode
Class ValueArgument
java.lang.Object
ws.schild.jave.encode.ValueArgument
- All Implemented Interfaces:
EncodingArgument
A ValueArgument is an EncodingArgument that is optionally present based on the presence of the
provided valueGetter.
- Author:
- mressler
-
Constructor Summary
ConstructorsConstructorDescriptionValueArgument(ArgType argType, String argumentName, Function<EncodingAttributes, Optional<String>> valueGetter) -
Method Summary
Modifier and TypeMethodDescriptiongetArguments(EncodingAttributes context) Gets the Stream of arguments given the EncodingAttributes as context.protected BooleanisPresent(EncodingAttributes context)
-
Constructor Details
-
ValueArgument
-
-
Method Details
-
isPresent
-
getArguments
Description copied from interface:EncodingArgumentGets the Stream of arguments given the EncodingAttributes as context. Implementers must take care to return a new Stream on each successive call as doing otherwise will result in the stream already being operated on exceptions.- Specified by:
getArgumentsin interfaceEncodingArgument- Parameters:
context- The EncodingAttributes specified by the user. Use this in your closure to generate the arguments you'd like to pass to ffmpeg.- Returns:
- A stream of arguments to pass to ffmpeg.
-
getArgType
- Specified by:
getArgTypein interfaceEncodingArgument
-