org.mmbase.util.transformers
Class CopyCharTransformer

java.lang.Object
  extended byorg.mmbase.util.transformers.ReaderTransformer
      extended byorg.mmbase.util.transformers.CopyCharTransformer
All Implemented Interfaces:
CharTransformer, Serializable, Transformer

public class CopyCharTransformer
extends ReaderTransformer
implements CharTransformer

This is the character transformer which does not actually transform anything, it just copies the reader to the writer.

Since:
MMBase-1.7
Version:
$Id: CopyCharTransformer.java,v 1.6 2005/05/08 13:22:05 michiel Exp $
Author:
Michiel Meeuwissen
See Also:
Serialized Form

Field Summary
static CopyCharTransformer INSTANCE
           
 
Method Summary
 String toString()
           
 Writer transform(Reader r, Writer w)
           
 String transform(String s)
           
 Writer transformBack(Reader r, Writer w)
           
 String transformBack(String s)
           
 
Methods inherited from class org.mmbase.util.transformers.ReaderTransformer
transform, 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, transformBack
 

Field Detail

INSTANCE

public static final CopyCharTransformer INSTANCE
Method Detail

transform

public Writer transform(Reader r,
                        Writer w)
Specified by:
transform in interface CharTransformer
Specified by:
transform in class ReaderTransformer

transformBack

public Writer transformBack(Reader r,
                            Writer w)
Specified by:
transformBack in interface CharTransformer
Overrides:
transformBack in class ReaderTransformer

transform

public String transform(String s)
Specified by:
transform in interface CharTransformer
Overrides:
transform in class ReaderTransformer

transformBack

public String transformBack(String s)
Specified by:
transformBack in interface CharTransformer
Overrides:
transformBack in class ReaderTransformer

toString

public String toString()
Specified by:
toString in interface Transformer


MMBase build 1.8.1.20060716