Package org.exoplatform.commons.utils
Interface TextEncoder
- All Known Implementing Classes:
CharsetTextEncoder
public interface TextEncoder
A text encoder that encodes text to an output stream. No assumptions must be made about the statefullness nature of an
encoder as some encoder may be statefull and some encoder may be stateless.
- Version:
- $Revision$
- Author:
- Julien Viet
-
Method Summary
Modifier and TypeMethodDescriptionvoidencode(char[] chars, int off, int len, OutputStream out) voidencode(char c, OutputStream out) voidencode(String str, int off, int len, OutputStream out) Returns the charset that will perform the encoding.
-
Method Details
-
getCharset
Charset getCharset()Returns the charset that will perform the encoding.- Returns:
- the charset for encoding
-
encode
- Throws:
IOException
-
encode
- Throws:
IOException
-
encode
- Throws:
IOException
-