1 package com.opensymphony.module.sitemesh.parser.rules;
2
3 import com.opensymphony.module.sitemesh.html.BlockExtractingRule;
4 import com.opensymphony.module.sitemesh.html.util.CharArray;
5
6 public class HeadExtractingRule extends BlockExtractingRule {
7
8 private final CharArray head;
9
10 public HeadExtractingRule(CharArray head) {
11 super(false, "head");
12 this.head = head;
13 }
14
15 protected CharArray createBuffer() {
16 return head;
17 }
18
19 }