org.eclipse.jetty.osgi.equinoxtools.console
Class WebConsoleWriterOutputStream

java.lang.Object
  extended by java.io.OutputStream
      extended by org.eclipse.jetty.io.WriterOutputStream
          extended by 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.


Nested Class Summary
static interface WebConsoleWriterOutputStream.MessageBroadcaster
           
static interface WebConsoleWriterOutputStream.OnFlushListener
          Interface called back after the outputstream is flushed.
 
Field Summary
 
Fields inherited from class org.eclipse.jetty.io.WriterOutputStream
_encoding, _writer
 
Constructor Summary
WebConsoleWriterOutputStream(Writer writer, String encoding)
           
 
Method Summary
 void addOnFlushListener(WebConsoleWriterOutputStream.OnFlushListener callback)
           
 void flush()
           
 List<WebConsoleWriterOutputStream.OnFlushListener> getOnFlushListeners()
           
 boolean removeOnFlushListener(WebConsoleWriterOutputStream.OnFlushListener callback)
           
 
Methods inherited from class org.eclipse.jetty.io.WriterOutputStream
close, write, write, write
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WebConsoleWriterOutputStream

public WebConsoleWriterOutputStream(Writer writer,
                                    String encoding)
Method Detail

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.