org.milyn.delivery.sax
Class TrackedStringWriter

java.lang.Object
  extended by java.io.Writer
      extended by java.io.StringWriter
          extended by org.milyn.delivery.sax.TrackedStringWriter
All Implemented Interfaces:
Closeable, Flushable, Appendable

public class TrackedStringWriter
extends StringWriter

This is a specialized StringWriter that tracks the writes to make sure we don't write the same buffer segment multiple times.

See JIRA: http://jira.codehaus.org/browse/MILYN-238

Author:
tom.fennelly@jboss.com

Field Summary
 
Fields inherited from class java.io.Writer
lock
 
Constructor Summary
TrackedStringWriter()
           
 
Method Summary
 void write(char[] cbuf, int off, int len)
           
 
Methods inherited from class java.io.StringWriter
append, append, append, close, flush, getBuffer, toString, write, write, write
 
Methods inherited from class java.io.Writer
write
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TrackedStringWriter

public TrackedStringWriter()
Method Detail

write

public void write(char[] cbuf,
                  int off,
                  int len)
Overrides:
write in class StringWriter


Copyright © 2009. All Rights Reserved.