org.melati.template.velocity
Class MelatiBufferedVelocityWriter
java.lang.Object
java.io.Writer
org.melati.util.MelatiWriter
org.melati.template.velocity.MelatiVelocityWriter
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.
|
Method Summary |
void |
close()
|
void |
flush()
|
void |
reset()
Do nothing in the unbuffered case. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MelatiBufferedVelocityWriter
public MelatiBufferedVelocityWriter(OutputStream output,
String encoding)
throws IOException
- Constructor.
- Parameters:
output - OutputStream to write toencoding - 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
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.