3 import java
.io
.UnsupportedEncodingException
;
5 public class PageNode
extends Node
{
7 private final String contentType
;
8 private final byte[] text
;
10 public PageNode(String contentType
, String text
) throws UnsupportedEncodingException
{
12 this.contentType
= contentType
;
13 this.text
= text
.getBytes("UTF-8");
16 public String
contentType() {
24 public byte[] text() {
29 public int visit(Visitor visitor
) {
30 return visitor
.visitPageNode(this);