Java javax.mail.internet MimeUtility fields, constructors, methods, implement or subclass

Example usage for Java javax.mail.internet MimeUtility fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for javax.mail.internet MimeUtility.

The text is from its open source code.

Method

InputStreamdecode(InputStream is, String encoding)
Decode the given input stream.
StringdecodeText(String etext)
Decode "unstructured" headers, that is, headers that are defined as '*text' as per RFC 822.
StringdecodeWord(String eword)
The string is parsed using the rules in RFC 2047 and RFC 2231 for parsing an "encoded-word".
OutputStreamencode(OutputStream os, String encoding)
Wrap an encoder around the given output stream.
StringencodeText(String text)
Encode a RFC 822 "text" token into mail-safe form as per RFC 2047.
StringencodeText(String text, String charset, String encoding)
Encode a RFC 822 "text" token into mail-safe form as per RFC 2047.
StringencodeWord(String word)
Encode a RFC 822 "word" token into mail-safe form as per RFC 2047.
StringencodeWord(String word, String charset, String encoding)
Encode a RFC 822 "word" token into mail-safe form as per RFC 2047.
Stringfold(int used, String s)
Fold a string at linear whitespace so that each line is no longer than 76 characters, if possible.
StringgetDefaultJavaCharset()
Get the default charset corresponding to the system's current default locale.
StringgetEncoding(DataSource ds)
Get the Content-Transfer-Encoding that should be applied to the input stream of this DataSource, to make it mail-safe.
StringgetEncoding(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.
StringjavaCharset(String charset)
Convert a MIME charset name into a valid Java charset name.
StringmimeCharset(String charset)
Convert a java charset into its MIME charset name.
Stringquote(String word, String specials)
A utility method to quote a word, if the word contains any characters from the specified 'specials' list.

The HeaderTokenizer class defines two special sets of delimiters - MIME and RFC 822.

Stringunfold(String s)
Unfold a folded header.