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

SingleLineTransformationMethod

public class SingleLineTransformationMethod extends ReplacementTransformationMethod
This transformation method causes any newline characters (\n) to be displayed as spaces instead of causing line breaks, and causes carriage return characters (\r) to have no appearance.

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

        if (sInstance != null)
            return sInstance;

        sInstance = new SingleLineTransformationMethod();
        return sInstance;
    
protected char[]getOriginal()
The characters to be replaced are \n and \r.


                  
       
        return ORIGINAL;
    
protected char[]getReplacement()
The character \n is replaced with is space; the character \r is replaced with is FEFF (zero width space).

        return REPLACEMENT;