Package de.sfuhrm.radiorecorder
Class Params
java.lang.Object
de.sfuhrm.radiorecorder.Params
The command line parameters as a POJO.
Must be created using
parse(java.lang.String[]).- Author:
- Stephan Fuhrmann
- See Also:
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
Params
public Params()
-
-
Method Details
-
parse
Parse the command line options.- Parameters:
args- the command line args as passed to the main method of the program.- Returns:
- the parsed command line options or
nullif the program needs to exit.nullwill be returned if the command lines are wrong or the command line help was displayed.
-
toMillis
Convert the textual duration towards a millisecond duration.- Parameters:
strDuration- a textual duration with the letters matching towardsDuration.parse(CharSequence).- Returns:
- number of milliseconds parsed.
- Throws:
DateTimeParseException- if the text cannot be parsed to a duration.
-