javax.mail.internet
Class MimeUtility
java.lang.Object
javax.mail.internet.MimeUtility
- public class MimeUtility
- extends Object
- Version:
- $Revision: 1.3 $ $Date: 2004/03/10 10:00:28 $
Field Summary |
static int |
ALL
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ALL
public static final int ALL
- See Also:
- Constant Field Values
MimeUtility
public MimeUtility()
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.