Package org.opends.quicksetup.util
Class StandardOutputSuppressor
- java.lang.Object
-
- org.opends.quicksetup.util.StandardOutputSuppressor
-
public class StandardOutputSuppressor extends Object
Tool for suppressing and unsuppressing output to standard output streams.
-
-
Constructor Summary
Constructors Constructor Description StandardOutputSuppressor()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static booleanisSuppressed()Checks whether this class has suppressed standard out streams.static voidsuppress()Suppresses output to the standard output streams.static voidunsuppress()Unsuppresses the standard output streams.
-
-
-
Method Detail
-
suppress
public static void suppress()
Suppresses output to the standard output streams.
-
unsuppress
public static void unsuppress()
Unsuppresses the standard output streams. Following a call to this method System.out and System.err will point to the descriptor prior to callingsuppress().
-
isSuppressed
public static boolean isSuppressed()
Checks whether this class has suppressed standard out streams.- Returns:
- boolean where true indicates output is suppressed
-
-