KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > ofbiz > webapp > ftl > LoopWriter


1 package org.ofbiz.webapp.ftl;
2
3 import java.io.IOException JavaDoc;
4 import java.io.Writer JavaDoc;
5
6 import freemarker.template.TemplateModelException;
7 import freemarker.template.TransformControl;
8
9 public class LoopWriter extends Writer JavaDoc implements TransformControl {
10
11     public LoopWriter(Writer JavaDoc out) {
12     }
13
14     public int onStart() throws TemplateModelException, IOException JavaDoc {
15         return TransformControl.EVALUATE_BODY;
16     }
17
18     public int afterBody() throws TemplateModelException, IOException JavaDoc {
19         return TransformControl.END_EVALUATION;
20     }
21
22     public void onError(Throwable JavaDoc t) throws Throwable JavaDoc {
23         throw t;
24     }
25
26     public void close() throws IOException JavaDoc {
27     }
28
29     public void write(char cbuf[], int off, int len) {
30     }
31
32     public void flush() throws IOException JavaDoc {
33     }
34
35 }
36
Popular Tags