01: package com.opensymphony.module.sitemesh.html.rules;
02:
03: import com.opensymphony.module.sitemesh.html.BlockExtractingRule;
04: import com.opensymphony.module.sitemesh.html.util.CharArray;
05:
06: public class HeadExtractingRule extends BlockExtractingRule {
07:
08: private final CharArray head;
09:
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: }
|