1 package com.opensymphony.module.sitemesh.parser; 2 3 import com.opensymphony.module.sitemesh.html.util.CharArray; 4 5 import java.io.IOException ; 6 import java.io.Writer ; 7 8 17 public class TokenizedHTMLPage extends AbstractHTMLPage { 18 19 private CharArray body; 20 private CharArray head; 21 22 public TokenizedHTMLPage(char[] original, CharArray body, CharArray head) { 23 this.pageData = original; 24 this.body = body; 25 this.head = head; 26 addProperty("title", ""); 27 } 28 29 public void writeHead(Writer out) throws IOException { 30 out.write(head.toString()); 31 } 32 33 public void writeBody(Writer out) throws IOException { 34 out.write(body.toString()); 35 } 36 37 public String getHead() { 38 return head.toString(); 39 } 40 41 public String getBody() { 42 return body.toString(); 43 } 44 45 public String getPage() { 46 return new String (pageData); 47 } 48 49 } 50 | Popular Tags |