javax.mail.internet

Class MimeUtility


public class MimeUtility
extends java.lang.Object

Field Summary

static int
ALL

Method Summary

static InputStream
decode(InputStream in, String encoding)
static String
decodeText(String word)
static String
decodeWord(String word)
static OutputStream
encode(OutputStream out, String encoding)
static OutputStream
encode(OutputStream out, String encoding, String filename)
static String
encodeText(String word)
static String
encodeText(String word, String characterset, String encoding)
static String
encodeWord(String word)
static String
encodeWord(String word, String characteset, String encoding)
static String
getDefaultJavaCharset()
static String
getEncoding(DataHandler handler)
static String
getEncoding(DataSource source)
static String
javaCharset(String charset)
static String
mimeCharset(String charset)
static String
quote(String word, String specials)

Field Details

ALL

public static final int ALL
Field Value:
-1

Method Details

decode

public static InputStream decode(InputStream in,
                                 String encoding)
            throws MessagingException

decodeText

public static String decodeText(String word)
            throws UnsupportedEncodingException

decodeWord

public static String decodeWord(String word)
            throws ParseException,
                   UnsupportedEncodingException

encode

public static OutputStream encode(OutputStream out,
                                  String encoding)
            throws MessagingException

encode

public static OutputStream encode(OutputStream out,
                                  String encoding,
                                  String filename)
            throws MessagingException

encodeText

public static String encodeText(String word)
            throws UnsupportedEncodingException

encodeText

public static String encodeText(String word,
                                String characterset,
                                String encoding)
            throws UnsupportedEncodingException

encodeWord

public static String encodeWord(String word)
            throws UnsupportedEncodingException

encodeWord

public static String encodeWord(String word,
                                String characteset,
                                String encoding)
            throws UnsupportedEncodingException

getDefaultJavaCharset

public static String getDefaultJavaCharset()

getEncoding

public static String getEncoding(DataHandler handler)

getEncoding

public static String getEncoding(DataSource source)

javaCharset

public static String javaCharset(String charset)

mimeCharset

public static String mimeCharset(String charset)

quote

public static String quote(String word,
                           String specials)