Package org.opends.quicksetup
Class Application.ErrorPrintStream
- java.lang.Object
-
- java.io.OutputStream
-
- java.io.FilterOutputStream
-
- java.io.PrintStream
-
- org.opends.quicksetup.Application.ErrorPrintStream
-
- All Implemented Interfaces:
Closeable,Flushable,Appendable,AutoCloseable
- Enclosing class:
- Application
public class Application.ErrorPrintStream extends PrintStream
This class is used to notify the ProgressUpdateListeners of events that are written to the standard error. It is used in Installer. These classes just create a ErrorPrintStream and then they do a call to System.err with it. The class just reads what is written to the standard error, 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 ErrorPrintStream()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
-
-