public class QuercusMimeUtility
extends java.lang.Object
Constructor and Description |
---|
QuercusMimeUtility() |
Modifier and Type | Method and Description |
---|---|
static StringValue |
decodeMime(Env env,
java.lang.CharSequence word,
java.lang.String charset)
Returns decoded Mime header/field.
|
static Value |
decodeMimeHeaders(Env env,
StringValue encodedHeaders,
java.lang.String charset) |
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)
Encodes a 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 Value decodeMimeHeaders(Env env, StringValue encodedHeaders, java.lang.String charset) 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
field_name
- header field namefield_value
- header field valuepreferences
- 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