com.opensymphony.module.sitemesh.filter
Class NullOutputBuffer
java.lang.Object
com.opensymphony.module.sitemesh.filter.NullOutputBuffer
- All Implemented Interfaces:
- OutputBuffer
public class NullOutputBuffer
- extends Object
- implements OutputBuffer
An outputBuffer that does nothing. If we cannot determine whether getWriter or
getOutputStream have been called, then return this object instead.
- Version:
- $Revision: 1.2 $
- Author:
- Scott Farquhar
- See Also:
PageWriter
,
PageOutputStream
,
PageResponseWrapper.getBufferStream()
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
nullOutputBuffer
private static NullOutputBuffer nullOutputBuffer
NullOutputBuffer
private NullOutputBuffer()
getInstance
public static NullOutputBuffer getInstance()
discardBuffer
public void discardBuffer()
- Specified by:
discardBuffer
in interface OutputBuffer
getBuffer
public char[] getBuffer(String encoding)
- Specified by:
getBuffer
in interface OutputBuffer
- Parameters:
encoding
- The encoding to use for decoding the buffer
flush
public void flush()
- Specified by:
flush
in interface OutputBuffer