Class ApplicationPrintStream
- java.lang.Object
-
- java.io.OutputStream
-
- java.io.FilterOutputStream
-
- java.io.PrintStream
-
- org.opends.guitools.controlpanel.util.ApplicationPrintStream
-
- All Implemented Interfaces:
Closeable,Flushable,Appendable,AutoCloseable
public class ApplicationPrintStream extends PrintStream
This class is used to notify the ProgressUpdateListeners of events that are written to the standard streams.
-
-
Field Summary
-
Fields inherited from class java.io.FilterOutputStream
out
-
-
Constructor Summary
Constructors Constructor Description ApplicationPrintStream()Default constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddListener(PrintStreamListener listener)Adds a print stream listener.voidprintln(String msg)voidremoveListener(PrintStreamListener listener)Removes a print stream listener.voidsetNotifyListeners(boolean notifyListeners)Sets whether the listeners must be notified or not.voidwrite(byte[] b, int off, int len)-
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
-
println
public void println(String msg)
- Overrides:
printlnin classPrintStream
-
write
public void write(byte[] b, int off, int len)- Overrides:
writein classPrintStream
-
addListener
public void addListener(PrintStreamListener listener)
Adds a print stream listener.- Parameters:
listener- the listener.
-
removeListener
public void removeListener(PrintStreamListener listener)
Removes a print stream listener.- Parameters:
listener- the listener.
-
setNotifyListeners
public void setNotifyListeners(boolean notifyListeners)
Sets whether the listeners must be notified or not.- Parameters:
notifyListeners- whether the listeners must be notified or not.
-
-