Class UnicodeEncoder
- java.lang.Object
-
- org.apache.myfaces.renderkit.html.util.UnicodeEncoder
-
public abstract class UnicodeEncoder extends Object
Converts characters outside of latin-1 set in a string to numeric character references.
-
-
Constructor Summary
Constructors Constructor Description UnicodeEncoder()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidencode(Writer writer, char[] cbuf, int off, int len)static voidencode(Writer writer, String string)static voidencode(Writer writer, String cbuf, int off, int len)static Stringencode(String string)Encodes the given string, so that it can be used within a html page.
-
-
-
Method Detail
-
encode
public static String encode(String string)
Encodes the given string, so that it can be used within a html page.- Parameters:
string- the string to convert
-
encode
public static void encode(Writer writer, String string) throws IOException
- Throws:
IOException
-
encode
public static void encode(Writer writer, char[] cbuf, int off, int len) throws IOException
- Throws:
IOException
-
encode
public static void encode(Writer writer, String cbuf, int off, int len) throws IOException
- Throws:
IOException
-
-