logahawk.listeners
Class WriterListener

java.lang.Object
  extended by logahawk.listeners.AppendableListener
      extended by logahawk.listeners.WriterListener
All Implemented Interfaces:
Listener

@ThreadSafe
public class WriterListener
extends AppendableListener

A helper Listener that can write to a Writer. This class does not add anything over AppendableListener, but exists because more people are familiar with the Writer interface than the new Appendable interface.


Field Summary
 
Fields inherited from class logahawk.listeners.AppendableListener
appendable, formatter
 
Constructor Summary
WriterListener(Writer writer)
           
WriterListener(Writer writer, MessageFormatter formatter)
           
 
Method Summary
 Writer getWriter()
           
 
Methods inherited from class logahawk.listeners.AppendableListener
log
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WriterListener

public WriterListener(Writer writer)

WriterListener

public WriterListener(Writer writer,
                      MessageFormatter formatter)
Method Detail

getWriter

public Writer getWriter()