org.melati.template.webmacro
Class 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:
java.io.Closeable, java.io.Flushable, java.lang.Appendable, MelatiWebmacroWriter
Direct Known Subclasses:
MelatiBufferedFastWriter

public class MelatiFastWriter
extends MelatiWriter
implements MelatiWebmacroWriter

Writes to an output object.


Field Summary
protected  java.io.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, java.io.OutputStream output, java.lang.String encoding)
          Constructor.
 
Method Summary
 FastWriter getFastWriter(TemplateEngine engine)
          Return a FastWriter that can be used for a while instead.
 java.io.OutputStream getOutputStream()
          Returns the underlying OutputStream that can be used.
 FastWriter getPeer()
           
 void stopUsingFastWriter(FastWriter fw)
          Stop using the given FastWriter obtained from this object.
 
Methods inherited from class org.melati.util.MelatiWriter
close, flush, getPrintWriter, 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 java.io.OutputStream outputStream
Constructor Detail

MelatiFastWriter

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

Throws:
java.io.IOException

MelatiFastWriter

public MelatiFastWriter(org.webmacro.Broker broker,
                        java.io.OutputStream output,
                        java.lang.String encoding)
                 throws java.io.IOException
Constructor.

Throws:
java.io.IOException
Method Detail

getPeer

public FastWriter getPeer()
Returns:
the peer

getFastWriter

public FastWriter getFastWriter(TemplateEngine engine)
Return a FastWriter that can be used for a while instead.

Specified by:
getFastWriter in interface MelatiWebmacroWriter
Parameters:
engine - the TemplateEngine
Returns:
a FastWriter
See Also:
stopUsingFastWriter(FastWriter)

getOutputStream

public java.io.OutputStream getOutputStream()
Returns the underlying OutputStream that can be used.

See Also:
stopUsingFastWriter(FastWriter)

stopUsingFastWriter

public void stopUsingFastWriter(FastWriter fw)
                         throws java.io.IOException
Stop using the given FastWriter obtained from this object.

Specified by:
stopUsingFastWriter in interface MelatiWebmacroWriter
Throws:
java.io.IOException
See Also:
getFastWriter(TemplateEngine)


Copyright © 2000-2008 PanEris. All Rights Reserved.