view test/Hello.java @ 1:548a93c24e55

Tema 0.1jk - Javakonkurs edition (imported from CVS).
author Mikhail Kryshen <mikhail@kryshen.net>
date Thu, 14 Dec 2006 23:22:05 +0300
parents
children
line source
1 import java.io.Writer;
2 import java.io.IOException;
3 import kryshen.tema.*;
5 /**
6 * Test function class.
7 *
8 * @author Mikhail A. Kryshen
9 */
10 public class Hello extends Function {
11 public Hello() {}
13 public int invoke(FunctionDataParser fdp, Writer out)
14 throws IOException, TemplateException {
16 out.write("Hello, ");
17 fdp.parseData(out);
19 return 1;
20 }
21 }