org.exoplatform.commons.utils
Class CharsetTextEncoder
java.lang.Object
org.exoplatform.commons.utils.CharsetTextEncoder
- All Implemented Interfaces:
- TextEncoder
public class CharsetTextEncoder
- extends java.lang.Object
- implements TextEncoder
A stateless encoder that use a char encoder for performing the encoding task.
- Version:
- $Revision$
- Author:
- Julien Viet
|
Method Summary |
void |
encode(char[] chars,
int off,
int len,
java.io.OutputStream out)
|
void |
encode(char c,
java.io.OutputStream out)
|
void |
encode(java.lang.String str,
int off,
int len,
java.io.OutputStream out)
|
static TextEncoder |
getUTF8()
|
| 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(java.lang.String encoding)
getUTF8
public static TextEncoder getUTF8()
encode
public void encode(char c,
java.io.OutputStream out)
throws java.io.IOException
- Specified by:
encode in interface TextEncoder
- Throws:
java.io.IOException
encode
public void encode(char[] chars,
int off,
int len,
java.io.OutputStream out)
throws java.io.IOException
- Specified by:
encode in interface TextEncoder
- Throws:
java.io.IOException
encode
public void encode(java.lang.String str,
int off,
int len,
java.io.OutputStream out)
throws java.io.IOException
- Specified by:
encode in interface TextEncoder
- Throws:
java.io.IOException
Copyright © 2010 eXo Platform SAS. All Rights Reserved.