Example usage for Java javax.mail.internet MimeUtility fields, constructors, methods, implement or subclass
The text is from its open source code.
InputStream | decode(InputStream is, String encoding) Decode the given input stream. |
String | decodeText(String etext) Decode "unstructured" headers, that is, headers that are defined as '*text' as per RFC 822. |
String | decodeWord(String eword) The string is parsed using the rules in RFC 2047 and RFC 2231 for parsing an "encoded-word". |
OutputStream | encode(OutputStream os, String encoding) Wrap an encoder around the given output stream. |
String | encodeText(String text) Encode a RFC 822 "text" token into mail-safe form as per RFC 2047. |
String | encodeText(String text, String charset, String encoding) Encode a RFC 822 "text" token into mail-safe form as per RFC 2047. |
String | encodeWord(String word) Encode a RFC 822 "word" token into mail-safe form as per RFC 2047. |
String | encodeWord(String word, String charset, String encoding) Encode a RFC 822 "word" token into mail-safe form as per RFC 2047. |
String | fold(int used, String s) Fold a string at linear whitespace so that each line is no longer than 76 characters, if possible. |
String | getDefaultJavaCharset() Get the default charset corresponding to the system's current default locale. |
String | getEncoding(DataSource ds) Get the Content-Transfer-Encoding that should be applied to the input stream of this DataSource, to make it mail-safe. |
String | getEncoding(DataHandler dh) Same as getEncoding(DataSource) except that instead of reading the data from an InputStream it uses the writeTo method to examine the data. |
String | javaCharset(String charset) Convert a MIME charset name into a valid Java charset name. |
String | mimeCharset(String charset) Convert a java charset into its MIME charset name. |
String | quote(String word, String specials) A utility method to quote a word, if the word contains any characters from the specified 'specials' list. The |
String | unfold(String s) Unfold a folded header. |