logahawk.listeners
Class StringBuilderListener

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

@ThreadSafe
public class StringBuilderListener
extends AppendableListener

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


Field Summary
 
Fields inherited from class logahawk.listeners.AppendableListener
appendable, formatter
 
Constructor Summary
StringBuilderListener()
           
StringBuilderListener(MessageFormatter formatter)
           
StringBuilderListener(StringBuilder builder)
           
StringBuilderListener(StringBuilder builder, MessageFormatter formatter)
           
 
Method Summary
 StringBuilder getStringBuilder()
           
 
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

StringBuilderListener

public StringBuilderListener()

StringBuilderListener

public StringBuilderListener(StringBuilder builder)

StringBuilderListener

public StringBuilderListener(MessageFormatter formatter)

StringBuilderListener

public StringBuilderListener(StringBuilder builder,
                             MessageFormatter formatter)
Method Detail

getStringBuilder

public StringBuilder getStringBuilder()