FileDocCategorySizeDatePackage
HideReturnsTransformationMethod.javaAPI DocAndroid 1.5 API1778Wed May 06 22:41:56 BST 2009android.text.method

HideReturnsTransformationMethod

public class HideReturnsTransformationMethod extends ReplacementTransformationMethod
This transformation method causes any carriage return characters (\r) to be hidden by displaying them as zero-width non-breaking space characters (\uFEFF).

Fields Summary
private static char[]
ORIGINAL
private static char[]
REPLACEMENT
private static HideReturnsTransformationMethod
sInstance
Constructors Summary
Methods Summary
public static android.text.method.HideReturnsTransformationMethodgetInstance()

        if (sInstance != null)
            return sInstance;

        sInstance = new HideReturnsTransformationMethod();
        return sInstance;
    
protected char[]getOriginal()
The character to be replaced is \r.


                
       
        return ORIGINAL;
    
protected char[]getReplacement()
The character that \r is replaced with is \uFEFF.

        return REPLACEMENT;