org.melati.template.velocity
Class MelatiBufferedVelocityWriter

java.lang.Object
  extended by java.io.Writer
      extended by org.melati.util.MelatiWriter
          extended by org.melati.template.velocity.MelatiVelocityWriter
              extended by org.melati.template.velocity.MelatiBufferedVelocityWriter
All Implemented Interfaces:
java.io.Closeable, java.io.Flushable, java.lang.Appendable

public class MelatiBufferedVelocityWriter
extends MelatiVelocityWriter

Provides an interface for objects that output from melati.


Field Summary
 
Fields inherited from class org.melati.template.velocity.MelatiVelocityWriter
outputStream
 
Fields inherited from class org.melati.util.MelatiWriter
flush, out
 
Fields inherited from class java.io.Writer
lock
 
Constructor Summary
MelatiBufferedVelocityWriter(javax.servlet.http.HttpServletResponse response)
          Constructor.
MelatiBufferedVelocityWriter(java.io.OutputStream output, java.lang.String encoding)
          Constructor.
 
Method Summary
 void close()
          
 void flush()
          
 void reset()
          Hook for extension.
 
Methods inherited from class org.melati.template.velocity.MelatiVelocityWriter
getPeer
 
Methods inherited from class org.melati.util.MelatiWriter
getPrintWriter, 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, toString, wait, wait, wait
 

Constructor Detail

MelatiBufferedVelocityWriter

public MelatiBufferedVelocityWriter(java.io.OutputStream output,
                                    java.lang.String encoding)
                             throws java.io.IOException
Constructor.

Parameters:
output - OutputStream to write to
encoding - character encoding to use
Throws:
java.io.IOException

MelatiBufferedVelocityWriter

public MelatiBufferedVelocityWriter(javax.servlet.http.HttpServletResponse response)
                             throws java.io.IOException
Constructor.

Parameters:
response - from which to get OutputSteram and encoding
Throws:
java.io.IOException
Method Detail

close

public void close()
           throws java.io.IOException

Specified by:
close in interface java.io.Closeable
Overrides:
close in class MelatiVelocityWriter
Throws:
java.io.IOException
See Also:
MelatiVelocityWriter.close()

flush

public void flush()
           throws java.io.IOException

Specified by:
flush in interface java.io.Flushable
Overrides:
flush in class MelatiWriter
Throws:
java.io.IOException
See Also:
MelatiWriter.flush()

reset

public void reset()
           throws java.io.IOException
Hook for extension.

Overrides:
reset in class MelatiWriter
Throws:
java.io.IOException
See Also:
MelatiWriter.reset()


Copyright © 2000-2008 PanEris. All Rights Reserved.