org.eclipse.jetty.osgi.equinoxtools.console
Class WebConsoleWriterOutputStream
java.lang.Object
java.io.OutputStream
org.eclipse.jetty.io.WriterOutputStream
org.eclipse.jetty.osgi.equinoxtools.console.WebConsoleWriterOutputStream
- All Implemented Interfaces:
- Closeable, Flushable
public class WebConsoleWriterOutputStream
- extends WriterOutputStream
Can be set with a listener that is called back right after the flush method is called.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
WebConsoleWriterOutputStream
public WebConsoleWriterOutputStream(Writer writer,
String encoding)
flush
public void flush()
throws IOException
- Specified by:
flush
in interface Flushable
- Overrides:
flush
in class WriterOutputStream
- Throws:
IOException
addOnFlushListener
public void addOnFlushListener(WebConsoleWriterOutputStream.OnFlushListener callback)
removeOnFlushListener
public boolean removeOnFlushListener(WebConsoleWriterOutputStream.OnFlushListener callback)
getOnFlushListeners
public List<WebConsoleWriterOutputStream.OnFlushListener> getOnFlushListeners()
Copyright © 1995-2011 Mort Bay Consulting. All Rights Reserved.