Class 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.
    • Constructor Detail

      • ErrorPrintStream

        public ErrorPrintStream()
        Default constructor.
    • 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