com.caucho.quercus.lib.i18n
Class IconvUtility

java.lang.Object
  extended by com.caucho.quercus.lib.i18n.IconvUtility

public class IconvUtility
extends java.lang.Object


Constructor Summary
IconvUtility()
           
 
Method Summary
static StringValue decodeEncode(Env env, StringValue str, java.lang.String inCharset, java.lang.String outCharset)
           
static StringValue decodeEncode(Env env, StringValue str, java.lang.String inCharset, java.lang.String outCharset, int offset)
           
static StringValue decodeEncode(Env env, StringValue str, java.lang.String inCharset, java.lang.String outCharset, int offset, int length)
          Decodes and encodes to specified charsets at the same time.
static StringValue decodeMime(Env env, java.lang.CharSequence word, java.lang.String charset)
          Returns decoded Mime header/field.
static Value encodeMime(Env env, StringValue name, StringValue value, java.lang.String inCharset, java.lang.String outCharset, java.lang.String scheme)
           
static StringValue encodeMime(Env env, StringValue name, StringValue value, java.lang.String inCharset, java.lang.String outCharset, java.lang.String scheme, java.lang.String lineBreakChars, int lineLength)
          Returns an encoded Mime header.
static java.lang.String encodeMimeWord(java.lang.String value, java.lang.String charset, java.lang.String scheme, java.lang.String lineBreakChars, int lineLength)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IconvUtility

public IconvUtility()
Method Detail

decodeEncode

public static StringValue decodeEncode(Env env,
                                       StringValue str,
                                       java.lang.String inCharset,
                                       java.lang.String outCharset)
                                throws java.io.UnsupportedEncodingException
Throws:
java.io.UnsupportedEncodingException

decodeEncode

public static StringValue decodeEncode(Env env,
                                       StringValue str,
                                       java.lang.String inCharset,
                                       java.lang.String outCharset,
                                       int offset)
                                throws java.io.UnsupportedEncodingException
Throws:
java.io.UnsupportedEncodingException

decodeEncode

public static StringValue decodeEncode(Env env,
                                       StringValue str,
                                       java.lang.String inCharset,
                                       java.lang.String outCharset,
                                       int offset,
                                       int length)
                                throws java.io.UnsupportedEncodingException
Decodes and encodes to specified charsets at the same time.

Throws:
java.io.UnsupportedEncodingException

decodeMime

public static StringValue decodeMime(Env env,
                                     java.lang.CharSequence word,
                                     java.lang.String charset)
                              throws java.io.UnsupportedEncodingException
Returns decoded Mime header/field.

Throws:
java.io.UnsupportedEncodingException

encodeMime

public static Value encodeMime(Env env,
                               StringValue name,
                               StringValue value,
                               java.lang.String inCharset,
                               java.lang.String outCharset,
                               java.lang.String scheme)
                        throws java.io.UnsupportedEncodingException
Throws:
java.io.UnsupportedEncodingException

encodeMime

public static StringValue encodeMime(Env env,
                                     StringValue name,
                                     StringValue value,
                                     java.lang.String inCharset,
                                     java.lang.String outCharset,
                                     java.lang.String scheme,
                                     java.lang.String lineBreakChars,
                                     int lineLength)
                              throws java.io.UnsupportedEncodingException
Returns an encoded Mime header.

Throws:
java.io.UnsupportedEncodingException

encodeMimeWord

public static java.lang.String encodeMimeWord(java.lang.String value,
                                              java.lang.String charset,
                                              java.lang.String scheme,
                                              java.lang.String lineBreakChars,
                                              int lineLength)
                                       throws java.io.UnsupportedEncodingException
Throws:
java.io.UnsupportedEncodingException