org.melati.template.webmacro
Class MelatiFastWriter

Package class diagram package MelatiFastWriter
java.lang.Object
  extended by java.io.Writer
      extended by org.melati.util.MelatiWriter
          extended by org.melati.template.webmacro.MelatiFastWriter
All Implemented Interfaces:
Closeable, Flushable, Appendable, MelatiWebmacroWriter
Direct Known Subclasses:
MelatiBufferedFastWriter

public class MelatiFastWriter
extends MelatiWriter
implements MelatiWebmacroWriter

Writes to an output object.


Field Summary
protected  OutputStream outputStream
           
 
Fields inherited from class org.melati.util.MelatiWriter
flush, out
 
Fields inherited from class java.io.Writer
lock
 
Constructor Summary
MelatiFastWriter(org.webmacro.Broker broker, javax.servlet.http.HttpServletResponse response)
          Constructor.
MelatiFastWriter(org.webmacro.Broker broker, OutputStream output, String encoding)
          Constructor.
 
Method Summary
 org.webmacro.FastWriter getFastWriter()
          Return a FastWriter that can be used for a while instead.
 void stopUsingFastWriter(org.webmacro.FastWriter fw)
          Stop using the given FastWriter obtained from this object.
 
Methods inherited from class org.melati.util.MelatiWriter
close, flush, getWriter, reset, 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, toString, wait, wait, wait
 

Field Detail

outputStream

protected OutputStream outputStream
Constructor Detail

MelatiFastWriter

public MelatiFastWriter(org.webmacro.Broker broker,
                        javax.servlet.http.HttpServletResponse response)
                 throws IOException
Constructor.

Throws:
IOException

MelatiFastWriter

public MelatiFastWriter(org.webmacro.Broker broker,
                        OutputStream output,
                        String encoding)
Constructor.

Method Detail

getFastWriter

public org.webmacro.FastWriter getFastWriter()
Return a FastWriter that can be used for a while instead.

Specified by:
getFastWriter in interface MelatiWebmacroWriter
Returns:
a FastWriter
See Also:
stopUsingFastWriter(FastWriter)

stopUsingFastWriter

public void stopUsingFastWriter(org.webmacro.FastWriter fw)
Stop using the given FastWriter obtained from this object.

Specified by:
stopUsingFastWriter in interface MelatiWebmacroWriter
See Also:
#getFastWriter(TemplateEngine)


Copyright © 2000-2010 PanEris. All Rights Reserved.