Class Buffer
java.lang.Object
com.opensymphony.module.sitemesh.filter.Buffer
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.
- Author:
- Joe Walnes
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets the contents.javax.servlet.ServletOutputStreamGets the output stream.Gets the writer.booleanChecks if is using stream.parse()Parses the.
-
Constructor Details
-
Buffer
Instantiates a new buffer.- Parameters:
pageParser- the page parserencoding- the encoding
-
-
Method Details
-
getContents
Gets the contents.- Returns:
- the contents
- Throws:
IOException- Signals that an I/O exception has occurred.
-
parse
Parses the.- Returns:
- the page
- Throws:
IOException- Signals that an I/O exception has occurred.
-
getWriter
Gets the writer.- Returns:
- the writer
-
getOutputStream
public javax.servlet.ServletOutputStream getOutputStream()Gets the output stream.- Returns:
- the output stream
-
isUsingStream
public boolean isUsingStream()Checks if is using stream.- Returns:
- true, if is using stream
-