org.apache.myfaces.shared_tomahawk.renderkit.html.util
Class UnicodeEncoder
java.lang.Object
org.apache.myfaces.shared_tomahawk.renderkit.html.util.UnicodeEncoder
public abstract class UnicodeEncoder
- extends Object
Converts characters outside of latin-1 set in a string to numeric character references.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
UnicodeEncoder
public UnicodeEncoder()
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
Copyright © 2012 The Apache Software Foundation. All Rights Reserved.