|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.stanwood.media.cli.BaseLauncher
org.stanwood.media.cli.AbstractLauncher
org.stanwood.media.info.CLIMediaFileInformation
public class CLIMediaFileInformation
This is a CLI application used to print media file information.
It has the following usage:
usage: mm-media-file-info [-h] [-c
Constructor Summary | |
---|---|
CLIMediaFileInformation(IExitHandler exitHandler)
The constructor |
Method Summary | |
---|---|
static void |
main(java.lang.String[] args)
The entry point to the application. |
protected void |
printUsage(org.apache.commons.cli.Options options,
java.io.PrintStream stdout,
java.io.PrintStream stderr)
|
protected boolean |
processOptions(java.lang.String[] args,
org.apache.commons.cli.CommandLine cmd)
This is called to validate the tools CLI options. |
protected boolean |
run()
This is executed to make the tool perform its function and should be extended. |
Methods inherited from class org.stanwood.media.cli.AbstractLauncher |
---|
getController, parseLongOption, processOptionsInternal, setConfig |
Methods inherited from class org.stanwood.media.cli.BaseLauncher |
---|
addOption, checkSubCommand, displayHelp, doExit, fatal, fatal, getName, getOptions, getStderr, getStdout, handleBadSubCommandOption, info, init, launch, printOptions, shouldDisplayHelp, warn |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.stanwood.media.cli.ICLICommand |
---|
getName |
Constructor Detail |
---|
public CLIMediaFileInformation(IExitHandler exitHandler)
exitHandler
- the exit handlerMethod Detail |
---|
protected boolean processOptions(java.lang.String[] args, org.apache.commons.cli.CommandLine cmd)
AbstractLauncher
AbstractLauncher
will already have been
validated sucesfully.
processOptions
in class AbstractLauncher
cmd
- The command line options
protected boolean run()
BaseLauncher
run
in class BaseLauncher
public static void main(java.lang.String[] args)
args
- The arguments.protected void printUsage(org.apache.commons.cli.Options options, java.io.PrintStream stdout, java.io.PrintStream stderr)
printUsage
in class BaseLauncher
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |