view test/Hello.java @ 34:7129dfb130e1

Update Apache Commons CLI. Update NOTICE. (transplanted from 3f7901c9de87fcaf562363772b1de6eeaeb98805)
author Mikhail Kryshen <mikhail@kryshen.net>
date Tue, 10 Nov 2009 04:07:03 +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;
    }
}