com.opensymphony.module.sitemesh.filter
Class Buffer
java.lang.Object
com.opensymphony.module.sitemesh.filter.Buffer
public class Buffer
- extends Object
When SiteMesh is activated for a request, the contents of the response are stored in this buffer, where they can
later be accessed as a parsed Page object.
- Version:
- $Revision: 1.3 $
- Author:
- Joe Walnes
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
pageParser
private final PageParser pageParser
encoding
private final String encoding
TEXT_ENCODER
private static final TextEncoder TEXT_ENCODER
bufferedWriter
private CharArrayWriter bufferedWriter
bufferedStream
private FastByteArrayOutputStream bufferedStream
exposedWriter
private PrintWriter exposedWriter
exposedStream
private javax.servlet.ServletOutputStream exposedStream
Buffer
public Buffer(PageParser pageParser,
String encoding)
getContents
public char[] getContents()
throws IOException
- Throws:
IOException
parse
public Page parse()
throws IOException
- Throws:
IOException
getWriter
public PrintWriter getWriter()
getOutputStream
public javax.servlet.ServletOutputStream getOutputStream()
isUsingStream
public boolean isUsingStream()