org.melati.template.velocity
Class MelatiBufferedVelocityWriter

Package class diagram package 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:
Closeable, Flushable, 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(OutputStream output, String encoding)
          Constructor.
 
Method Summary
 void close()
          
 void flush()
          
 void reset()
          Do nothing in the unbuffered case.
 
Methods inherited from class org.melati.template.velocity.MelatiVelocityWriter
getVelocityWriter
 
Methods inherited from class org.melati.util.MelatiWriter
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(OutputStream output,
                                    String encoding)
                             throws IOException
Constructor.

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

MelatiBufferedVelocityWriter

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

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

close

public void close()
           throws IOException

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

flush

public void flush()
           throws IOException

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

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()


Copyright © 2000-2010 PanEris. All Rights Reserved.