public abstract class CliSupport extends Object
| Modifier and Type | Field and Description |
|---|---|
static BuiltinIoServiceFactoryFactories |
DEFAULT_IO_SERVICE_FACTORY |
| Modifier | Constructor and Description |
|---|---|
protected |
CliSupport() |
| Modifier and Type | Method and Description |
|---|---|
static BuiltinIoServiceFactoryFactories |
resolveIoServiceFactory(PrintStream stderr,
String... args)
Scans the arguments for the "-io" command line option and sets the I/O
service accordingly.
|
static <M extends AbstractFactoryManager> |
setupIoServiceFactory(M manager,
Map<String,?> options,
PrintStream stdout,
PrintStream stderr,
String... args) |
static boolean |
showError(PrintStream stderr,
String message) |
public static final BuiltinIoServiceFactoryFactories DEFAULT_IO_SERVICE_FACTORY
public static boolean showError(PrintStream stderr, String message)
public static BuiltinIoServiceFactoryFactories resolveIoServiceFactory(PrintStream stderr, String... args)
DEFAULT_IO_SERVICE_FACTORY
is used.stderr - Error stream for output of error messagesargs - The arguments to scannull if errors encounteredpublic static <M extends AbstractFactoryManager> M setupIoServiceFactory(M manager, Map<String,?> options, PrintStream stdout, PrintStream stderr, String... args)
Copyright © 2018 The Apache Software Foundation. All rights reserved.