org.mmbase.util.transformers
Interface ConfigurableTransformer

All Superinterfaces:
Transformer
All Known Implementing Classes:
Base64, ConfigurableReaderTransformer, ConfigurableStringTransformer

public interface ConfigurableTransformer
extends Transformer

Interface for transformations. The 'configurable' version can be configured with an integer, so the transformer can work in a limited number of ways. This is to avoid a wild growth of class, because you can influence the behaviour a bit by such a setting.

Since:
MMBase-1.7
Author:
Michiel Meeuwissen

Method Summary
 void configure(int to)
          If a transformer can handle more then one destination format, it can be configured with this.
 java.lang.String getEncoding()
          Returns the encoding that is currently active
 java.util.Map transformers()
          Returns which transformations can be done by an object of this class.
 
Methods inherited from interface org.mmbase.util.transformers.Transformer
toString
 

Method Detail

configure

public void configure(int to)
If a transformer can handle more then one destination format, it can be configured with this. There must be a default, since to can be null.


transformers

public java.util.Map transformers()
Returns which transformations can be done by an object of this class.

Returns:
A Map with String Integer/Class pairs.

getEncoding

public java.lang.String getEncoding()
Returns the encoding that is currently active

Returns:
An String representing the coding that is currently used.


MMBase build 1.7.1.20041002