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.1 $
- 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 ServletOutputStream exposedStream
Buffer
public Buffer(Factory factory,
String contentType,
String encoding)
parse
public Page parse()
throws IOException
- Throws:
IOException
getWriter
public PrintWriter getWriter()
getOutputStream
public ServletOutputStream getOutputStream()
isUsingStream
public boolean isUsingStream()