org.melati.util
Class MelatiStringWriter

Package class diagram package MelatiStringWriter
java.lang.Object
  extended by java.io.Writer
      extended by org.melati.util.MelatiWriter
          extended by org.melati.util.MelatiStringWriter
All Implemented Interfaces:
Closeable, Flushable, Appendable
Direct Known Subclasses:
MelatiWebmacroStringWriter

public class MelatiStringWriter
extends MelatiWriter

Wrap up StringWriter as a MelatiWriter.


Field Summary
 
Fields inherited from class org.melati.util.MelatiWriter
flush, out
 
Fields inherited from class java.io.Writer
lock
 
Constructor Summary
MelatiStringWriter()
          Constructor.
 
Method Summary
 void reset()
          Do nothing in the unbuffered case.
 String toString()
          Returns the buffer contents.
 
Methods inherited from class org.melati.util.MelatiWriter
close, flush, getWriter, setFlushingOn, startFlushing, write, write
 
Methods inherited from class java.io.Writer
append, append, append, write, write, write
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MelatiStringWriter

public MelatiStringWriter()
Constructor.

Method Detail

reset

public void reset()
           throws IOException
Do nothing in the unbuffered case.

Overrides:
reset in class MelatiWriter
Throws:
IOException - in some implementations
See Also:
MelatiWriter.reset()

toString

public String toString()
Returns the buffer contents.

Delegated to java.io.StringBuffer.

Overrides:
toString in class Object
See Also:
Object.toString()


Copyright © 2000-2010 PanEris. All Rights Reserved.