view test/Hello.java @ 10:6a5132431379

Compile for Java 1.5 for better compatibility.
author Mikhail Kryshen <mikhail@kryshen.net>
date Sat, 07 Mar 2009 19:02:36 +0300
parents 548a93c24e55
children
line wrap: on
line source

import java.io.Writer;
import java.io.IOException;
import kryshen.tema.*;

/**
 * Test function class.
 * 
 * @author Mikhail A. Kryshen
 */
public class Hello extends Function {
    public Hello() {}

    public int invoke(FunctionDataParser fdp, Writer out)
        throws IOException, TemplateException {
        
        out.write("Hello, ");
        fdp.parseData(out);

        return 1;
    }
}