Class PartialPageParser

java.lang.Object
com.opensymphony.module.sitemesh.parser.PartialPageParser
All Implemented Interfaces:
PageParser
Direct Known Subclasses:
SuperFastSimplePageParser

public class PartialPageParser extends Object implements PageParser
Page parser that doesn't parse the full page, but rather just parses the head section of the page.
Since:
v2.5
  • Constructor Details

    • PartialPageParser

      public PartialPageParser()
  • Method Details

    • parse

      public Page parse(char[] buffer) throws IOException
      Description copied from interface: PageParser
      Parse the given buffer into a Page object.
      Specified by:
      parse in interface PageParser
      Parameters:
      buffer - The buffer for the page.
      Returns:
      The parsed page
      Throws:
      IOException - if an error occurs
    • parse

      public Page parse(SitemeshBuffer buffer) throws IOException
      Description copied from interface: PageParser
      Parse the given buffer into a page object. DefaultSitemeshBuffer is the appropriate implementation of this interface to pass in.
      Specified by:
      parse in interface PageParser
      Parameters:
      buffer - The buffer for the page.
      Returns:
      The parsed page
      Throws:
      IOException - if an error occurs