org.mmbase.util.transformers
Class AbstractCommandStringTransformer

java.lang.Object
  extended byorg.mmbase.util.transformers.StringTransformer
      extended byorg.mmbase.util.transformers.AbstractCommandStringTransformer
All Implemented Interfaces:
CharTransformer, Transformer
Direct Known Subclasses:
Figlet, Perl

public abstract class AbstractCommandStringTransformer
extends StringTransformer
implements CharTransformer

If you want to transform a Reader stream by the use of an external command, than you can extend this class. Implement the 'getCommand' function.

Since:
MMBase-1.7
Author:
Michiel Meeuwissen

Constructor Summary
AbstractCommandStringTransformer()
           
 
Method Summary
protected abstract  java.lang.String[] getCommand()
           
 java.lang.String toString()
           
 java.lang.String transform(java.lang.String s)
           
 
Methods inherited from class org.mmbase.util.transformers.StringTransformer
transform, transform, transformBack, transformBack, transformBack
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.mmbase.util.transformers.CharTransformer
transform, transform, transformBack, transformBack, transformBack
 

Constructor Detail

AbstractCommandStringTransformer

public AbstractCommandStringTransformer()
Method Detail

getCommand

protected abstract java.lang.String[] getCommand()

transform

public final java.lang.String transform(java.lang.String s)
Specified by:
transform in interface CharTransformer
Specified by:
transform in class StringTransformer

toString

public java.lang.String toString()
Specified by:
toString in interface Transformer


MMBase build 1.7.1.20041002