public class IconvUtility
extends java.lang.Object
Constructor and Description |
---|
IconvUtility() |
Modifier and Type | Method and Description |
---|---|
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) |
public static StringValue decodeEncode(Env env, StringValue str, java.lang.String inCharset, java.lang.String outCharset) throws java.io.UnsupportedEncodingException
java.io.UnsupportedEncodingException
public static StringValue decodeEncode(Env env, StringValue str, java.lang.String inCharset, java.lang.String outCharset, int offset) throws java.io.UnsupportedEncodingException
java.io.UnsupportedEncodingException
public static StringValue decodeEncode(Env env, StringValue str, java.lang.String inCharset, java.lang.String outCharset, int offset, int length) throws java.io.UnsupportedEncodingException
java.io.UnsupportedEncodingException
public static StringValue decodeMime(Env env, java.lang.CharSequence word, java.lang.String charset) throws java.io.UnsupportedEncodingException
java.io.UnsupportedEncodingException
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
java.io.UnsupportedEncodingException
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
java.io.UnsupportedEncodingException
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
java.io.UnsupportedEncodingException