org.sitemesh.webapp.contentfilter.io
Class TextEncoder

java.lang.Object
  extended by org.sitemesh.webapp.contentfilter.io.TextEncoder

public class TextEncoder
extends Object

Converts text as bytes to chars using specified encoding.

Author:
Scott Farquhar, Hani Suleiman, Joe Walnes

Constructor Summary
TextEncoder()
           
 
Method Summary
static CharBuffer encode(ByteBuffer data, String encoding)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TextEncoder

public TextEncoder()
Method Detail

encode

public static CharBuffer encode(ByteBuffer data,
                                String encoding)
                         throws IOException
Throws:
IOException


Copyright © 2011. All Rights Reserved.