KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > mmbase > util > transformers > Figlet


1 /*
2
3 This software is OSI Certified Open Source Software.
4 OSI Certified is a certification mark of the Open Source Initiative.
5
6 The license (Mozilla version 1.0) can be read at the MMBase site.
7 See http://www.MMBase.org/license
8
9 */

10 package org.mmbase.util.transformers;
11 /**
12  * An escaper based on the amusing 'figlet' tool, which is available on some system. (Make sure it
13  * is in the 'PATH'.
14  *
15  * Figlet output is only fit for text/plain output, or perhaps for <pre> tags...
16  *
17  * @author Michiel Meeuwissen
18  * @since MMBase-1.7
19  * @version $Id: Figlet.java,v 1.3 2003/06/05 09:32:29 michiel Exp $
20  * @todo no way to specify commandline arguments on the fly.
21  */

22
23 public class Figlet extends AbstractCommandStringTransformer implements CharTransformer {
24     protected String JavaDoc[] getCommand() {
25         return new String JavaDoc[] {"figlet", "-w", "160"};
26     }
27 }
28
Popular Tags