public final class AppPSimu extends Object
Modifier and Type | Method and Description |
---|---|
static boolean |
isDebug()
Get it the debug flag is active.
|
static void |
main(String[] args)
Main entry point.
|
static org.apache.commons.cli.CommandLine |
setCommandLine(String[] args) |
static void |
setLogLevel(Level level)
Set Logger Level.
|
static void |
setVerbose(boolean verb)
Method to set the verbose mode on/off.
|
static void |
stdoutPrintf(String format,
Object... args)
A convenience method to write a formatted string to this output stream using the specified
format string and arguments.
|
static void |
terminate(int exitCode)
Terminates the application.
|
public static void setVerbose(boolean verb)
verb
- if true verbose mode is set to on, if false verbose mode is set to off.public static void main(String[] args) throws UnsupportedEncodingException
args
- arguments.UnsupportedEncodingException
- if some internal error occurs.public static org.apache.commons.cli.CommandLine setCommandLine(String[] args) throws org.apache.commons.cli.ParseException
args
- command line argumentsorg.apache.commons.cli.ParseException
- in case of exception parsing the command line arguments.public static void stdoutPrintf(String format, Object... args)
format
- A format string as described in Format
string syntaxargs
- Arguments referenced by the format specifiers in the format string. If there are
more arguments than format specifiers, the extra arguments are ignored. The number
of arguments is variable and may be zero. The maximum number of arguments is
limited by the maximum dimension of a Java array as defined by The
Java™ Virtual Machine Specification. The behaviour on a null
argument depends on the conversion.public static void terminate(int exitCode)
exitCode
- 0 if sucesfull, >0 in case of error.public static void setLogLevel(Level level)
level
- Logger Level.public static boolean isDebug()
Copyright © 2017. All rights reserved.