org.exoplatform.commons.utils
Class CharsetTextEncoder
java.lang.Object
org.exoplatform.commons.utils.CharsetTextEncoder
- All Implemented Interfaces:
- TextEncoder
public class CharsetTextEncoder
- extends Object
- implements TextEncoder
A stateless encoder that use a char encoder for performing the encoding task.
- Version:
- $Revision$
- Author:
- Julien Viet
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CharsetTextEncoder
public CharsetTextEncoder(CharEncoder charEncoder)
CharsetTextEncoder
public CharsetTextEncoder(String encoding)
getUTF8
public static TextEncoder getUTF8()
encode
public void encode(char c,
OutputStream out)
throws IOException
- Specified by:
encode in interface TextEncoder
- Throws:
IOException
encode
public void encode(char[] chars,
int off,
int len,
OutputStream out)
throws IOException
- Specified by:
encode in interface TextEncoder
- Throws:
IOException
encode
public void encode(String str,
int off,
int len,
OutputStream out)
throws IOException
- Specified by:
encode in interface TextEncoder
- Throws:
IOException
Copyright © 2009 eXo Platform SAS. All Rights Reserved.