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.
Author:
Joe Walnes
  • Constructor Details

    • Buffer

      public Buffer(PageParser pageParser, String encoding)
      Instantiates a new buffer.
      Parameters:
      pageParser - the page parser
      encoding - the encoding
  • Method Details

    • getContents

      public SitemeshBuffer getContents() throws IOException
      Gets the contents.
      Returns:
      the contents
      Throws:
      IOException - Signals that an I/O exception has occurred.
    • parse

      public Page parse() throws IOException
      Parses the.
      Returns:
      the page
      Throws:
      IOException - Signals that an I/O exception has occurred.
    • getWriter

      public PrintWriter 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