com.opensymphony.module.sitemesh.filter
Class NullOutputBuffer

java.lang.Object
  extended by 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()

Field Summary
private static NullOutputBuffer nullOutputBuffer
           
 
Constructor Summary
private NullOutputBuffer()
           
 
Method Summary
 void discardBuffer()
           
 void flush()
           
 char[] getBuffer(String encoding)
           
static NullOutputBuffer getInstance()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

nullOutputBuffer

private static NullOutputBuffer nullOutputBuffer
Constructor Detail

NullOutputBuffer

private NullOutputBuffer()
Method Detail

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

www.opensymphony.com/sitemesh/