com.sitemesh.parser
Class DOMPage

java.lang.Object
  |
  +--com.sitemesh.parser.AbstractPage
        |
        +--com.sitemesh.parser.AbstractHTMLPage
              |
              +--com.sitemesh.parser.DOMPage

public class DOMPage
extends AbstractHTMLPage

Implementation of HTMLPage that populates itself from a parsed DOM document.

Version:
$Revision: 1.7 $
Author:
Joe Walnes

Fields inherited from class com.sitemesh.parser.AbstractPage
pageData, request
 
Constructor Summary
DOMPage(byte[] pageData, org.w3c.dom.html.HTMLDocument document)
          Create instance and set all initial properties and data.
 
Method Summary
 void writeBody(java.io.Writer out)
          Serialize BODY contents to stream.
 void writeHead(java.io.Writer out)
          Serialize HEAD contents to stream.
 
Methods inherited from class com.sitemesh.parser.AbstractHTMLPage
getDecoratorName, getTitle, writeBody, writeHead
 
Methods inherited from class com.sitemesh.parser.AbstractPage
addProperty, getBooleanProperty, getContentLength, getIntProperty, getLongProperty, getProperties, getProperty, getPropertyKeys, getPropertySize, getRequest, isPropertySet, noNull, setRequest, shouldCache, writePage, writePage
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DOMPage

public DOMPage(byte[] pageData,
               org.w3c.dom.html.HTMLDocument document)
Create instance and set all initial properties and data.
Parameters:
pageData - Original page data
document - Parsed DOM HTML document.
Method Detail

writeHead

public void writeHead(java.io.Writer out)
               throws java.io.IOException
Serialize HEAD contents to stream.
Overrides:
writeHead in class AbstractHTMLPage

writeBody

public void writeBody(java.io.Writer out)
               throws java.io.IOException
Serialize BODY contents to stream.
Overrides:
writeBody in class AbstractHTMLPage