javax.mail.internet
Class MimeUtility

java.lang.Object
  extended byjavax.mail.internet.MimeUtility

public class MimeUtility
extends Object

Version:
$Revision: 1.3 $ $Date: 2004/03/10 10:00:28 $

Field Summary
static int ALL
           
 
Constructor Summary
MimeUtility()
           
 
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(javax.activation.DataHandler handler)
           
static String getEncoding(javax.activation.DataSource source)
           
static String javaCharset(String charset)
           
static String mimeCharset(String charset)
           
static String quote(String word, String specials)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ALL

public static final int ALL
See Also:
Constant Field Values
Constructor Detail

MimeUtility

public MimeUtility()
Method Detail

decode

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

decodeText

public static String decodeText(String word)
                         throws UnsupportedEncodingException
Throws:
UnsupportedEncodingException

decodeWord

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

encode

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

encode

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

encodeText

public static String encodeText(String word)
                         throws UnsupportedEncodingException
Throws:
UnsupportedEncodingException

encodeText

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

encodeWord

public static String encodeWord(String word)
                         throws UnsupportedEncodingException
Throws:
UnsupportedEncodingException

encodeWord

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

getDefaultJavaCharset

public static String getDefaultJavaCharset()

getEncoding

public static String getEncoding(javax.activation.DataHandler handler)

getEncoding

public static String getEncoding(javax.activation.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)


Copyright © 2003-2005 Apache Software Foundation. All Rights Reserved.