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
 void encode(char[] chars, int off, int len, OutputStream out)
           
 void encode(char c, OutputStream out)
           
 void encode(String str, int off, int len, OutputStream out)
           
 

Method Detail

encode

void encode(char c,
            OutputStream out)
            throws IOException
Throws:
IOException

encode

void encode(char[] chars,
            int off,
            int len,
            OutputStream out)
            throws IOException
Throws:
IOException

encode

void encode(String str,
            int off,
            int len,
            OutputStream out)
            throws IOException
Throws:
IOException


Copyright © 2009 eXo Platform SAS. All Rights Reserved.