org.mmbase.util.transformers
Class UnicodeEscaper

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

public class UnicodeEscaper
extends ReaderTransformer
implements CharTransformer

To escape from and to 'java' like unicode escaping. That is \\u<4 hex digits>.

Since:
MMBase-1.7.2
Version:
$Id: UnicodeEscaper.java,v 1.3 2006/04/19 21:10:58 michiel Exp $
Author:
Michiel Meeuwissen
See Also:
Serialized Form

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

Constructor Detail

UnicodeEscaper

public UnicodeEscaper()
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

toString

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


MMBase build 1.8.1.20060716