public class JavaPropertiesTool extends com.forgerock.opendj.cli.ConsoleApplication
Modifier and Type | Class and Description |
---|---|
static class |
JavaPropertiesTool.ErrorReturnCode
The enumeration containing the different return codes that the command-line can have.
|
Modifier and Type | Method and Description |
---|---|
int |
execute(String[] args)
Parses the provided command-line arguments and uses that information to
run the java properties tool.
|
boolean |
isAdvancedMode()
Indicates whether the user has requested advanced mode.
|
boolean |
isInteractive()
Indicates whether the user has requested interactive behavior.
|
boolean |
isMenuDrivenMode()
Indicates whether this console application is running in its menu-driven mode.
|
boolean |
isQuiet()
Indicates whether the user has requested quiet output.
|
boolean |
isScriptFriendly()
Indicates whether the user has requested script-friendly output.
|
boolean |
isVerbose()
Indicates whether the user has requested verbose output.
|
static void |
main(String[] args)
The main method for the java properties tool.
|
static int |
mainCLI(String... args)
Parses the provided command-line arguments and uses that information to
run the java properties tool.
|
static int |
mainCLI(String[] args,
OutputStream outStream,
OutputStream errStream,
InputStream inStream)
Parses the provided command-line arguments and uses that information to
run the java properties tool.
|
static void |
updateProperties(BufferedReader reader,
Properties properties)
Reads the contents of the provided reader and updates the provided
Properties object with it.
|
askConfirmation, askPort, confirmAction, errPrint, errPrintln, errPrintln, errPrintln, errPrintVerboseMessage, getErrorStream, getErrStream, getInputStream, getOutputStream, pressReturnToContinue, print, println, println, println, println, printProgressBar, printVerboseMessage, readInput, readInput, readLineOfInput, readPassword, readPassword, readPort, readValidatedInput, readValidatedInput
public static void main(String[] args)
args
- the command-line arguments provided to this program.public static int mainCLI(String... args)
args
- the command-line arguments provided to this program.public static int mainCLI(String[] args, OutputStream outStream, OutputStream errStream, InputStream inStream)
args
- The command-line arguments provided to this
program.outStream
- The output stream to use for standard output, or
null
if standard output is not
needed.errStream
- The output stream to use for standard error, or
null
if standard error is not
needed.inStream
- The input stream to use for standard input.public int execute(String[] args)
args
- the command-line arguments provided to this program.public static void updateProperties(BufferedReader reader, Properties properties) throws IOException
reader
- the buffered reader.properties
- the properties.IOException
- if there is an error reading the buffered reader.public boolean isQuiet()
com.forgerock.opendj.cli.ConsoleApplication
false
.isQuiet
in class com.forgerock.opendj.cli.ConsoleApplication
true
if the user has requested quiet output.public boolean isInteractive()
com.forgerock.opendj.cli.ConsoleApplication
true
.isInteractive
in class com.forgerock.opendj.cli.ConsoleApplication
true
if the user has requested interactive behavior.public boolean isMenuDrivenMode()
com.forgerock.opendj.cli.ConsoleApplication
isMenuDrivenMode
in class com.forgerock.opendj.cli.ConsoleApplication
true
if this console application is running in its menu-driven mode.public boolean isScriptFriendly()
com.forgerock.opendj.cli.ConsoleApplication
false
.isScriptFriendly
in class com.forgerock.opendj.cli.ConsoleApplication
true
if the user has requested script-friendly output.public boolean isAdvancedMode()
com.forgerock.opendj.cli.ConsoleApplication
isAdvancedMode
in class com.forgerock.opendj.cli.ConsoleApplication
true
if the user has requested advanced mode.public boolean isVerbose()
com.forgerock.opendj.cli.ConsoleApplication
false
.isVerbose
in class com.forgerock.opendj.cli.ConsoleApplication
true
if the user has requested verbose output.Copyright 2010-2017 ForgeRock AS.