Class IASys
- java.lang.Object
-
- com.zerog.ia.api.pub.IASys
-
public class IASys extends java.lang.Object
The IASys class contains useful static class fields and methods for working with console-based interactive installer I/O.
IASys cannot not be instantiated.
The facilities provided by the IASys class are the installer's 'standard' input, 'standard' output, 'error' output, and 'log' output streams.
This class should only be used with actions that extend
CustomCodeConsoleAction
.- See Also:
CustomCodeConsoleAction
,ConsoleUtils
-
-
Field Summary
Fields Modifier and Type Field Description static java.io.PrintStream
err
The installer's "standard" error output stream.static com.zerog.util.ZGSys.IAConsoleReader
in
The installer's "standard" input (similar to a BufferedReader).static java.io.PrintStream
log
The installer's "standard" log output stream.static java.io.PrintStream
out
The installer's "standard" output stream.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
setPreviousEnabled(boolean enable)
Enables or disables the user's ability to go back to a previous custom code console action from the current console action, depending on the value of the parameterenabled
.static void
setQuitEnabled(boolean enable)
Enables or disables the user's ability to quit the installer from a console prompt, depending on the value of the parameterenabled
.
-
-
-
Field Detail
-
out
public static final java.io.PrintStream out
The installer's "standard" output stream.
- See Also:
PrintStream
-
in
public static final com.zerog.util.ZGSys.IAConsoleReader in
The installer's "standard" input (similar to a BufferedReader).
IAConsoleReader in
provides areadLine()
method which reads a line of text. ThereadLine
method throwsPreviousRequestException
.A line is considered to be terminated by any one of the following: a line feed ('\n'), a carriage return ('\r'), or a carriage return followed immediately by a linefeed.
A return value of null signals an I/O Error.
-
err
public static final java.io.PrintStream err
The installer's "standard" error output stream.
As of the current version of IA (version 4.x), this stream is redirected to a null output stream during the normal run of an installer. When run in debug mode, output to this stream will be seen in stderr.
- See Also:
PrintStream
-
log
public static final java.io.PrintStream log
The installer's "standard" log output stream.
As of the current version of IA (version 4.x), this stream is redirected to a null output stream during the normal run of an installer. When run in debug mode, output to this stream will be seen in stderr.
- See Also:
PrintStream
-
-
Method Detail
-
setPreviousEnabled
public static void setPreviousEnabled(boolean enable)
Enables or disables the user's ability to go back to a previous custom code console action from the current console action, depending on the value of the parameter
enabled
.'Previous' functionality is enabled by default for each custom code console action. If an action turns off this functionality, it will automatically be reactivated for the next console action.
- Parameters:
enable
- whether the 'Previous' functionality is enabled.
-
setQuitEnabled
public static void setQuitEnabled(boolean enable)
Enables or disables the user's ability to quit the installer from a console prompt, depending on the value of the parameter
enabled
.'Quit' functionality is enabled by default for each custom code console action. If an action turns off this functionality, it will automatically be reactivated for the next console action.
- Parameters:
enable
- whether the 'Quit' functionality is enabled.
-
-