Package org.opends.quicksetup
Class Application.OutputPrintStream
- java.lang.Object
-
- java.io.OutputStream
-
- java.io.FilterOutputStream
-
- java.io.PrintStream
-
- org.opends.quicksetup.Application.OutputPrintStream
-
- All Implemented Interfaces:
Closeable,Flushable,Appendable,AutoCloseable
- Enclosing class:
- Application
public class Application.OutputPrintStream extends PrintStream
This class is used to notify the ProgressUpdateListeners of events that are written to the standard output. It is used in WebStartInstaller and in Installer. These classes just create a OutputPrintStream and then they do a call to System.out with it. The class just reads what is written to the standard output, obtains an formatted representation of it and then notifies the ProgressUpdateListeners with the formatted messages.
-
-
Field Summary
-
Fields inherited from class java.io.FilterOutputStream
out
-
-
Constructor Summary
Constructors Constructor Description OutputPrintStream()Default constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected org.forgerock.i18n.LocalizableMessageformatString(String s)Format a string before sending a listener notification.-
Methods inherited from class java.io.PrintStream
append, append, append, checkError, clearError, close, flush, format, format, print, print, print, print, print, print, print, print, print, printf, printf, println, println, println, println, println, println, println, println, println, setError, write
-
Methods inherited from class java.io.FilterOutputStream
write
-
Methods inherited from class java.io.OutputStream
nullOutputStream
-
-
-
-
Method Detail
-
formatString
protected org.forgerock.i18n.LocalizableMessage formatString(String s)
Format a string before sending a listener notification.- Parameters:
s- to format- Returns:
- formatted message
-
-