public final class MimeUtility extends Object
| 限定符和类型 | 方法和说明 |
|---|---|
static int |
decode(byte[] data,
OutputStream out)
Decode the encoded byte data writing it to the given output stream.
|
static String |
decodeText(String text)
Decode a string of text obtained from a mail header into
its proper form.
|
public static String decodeText(String text) throws UnsupportedEncodingException
text - The text to decode.UnsupportedEncodingException - if the detected encoding in the input text is not supported.public static int decode(byte[] data,
OutputStream out)
throws IOException
data - The array of byte data to decode.out - The output stream used to return the decoded data.IOException - if a problem occurs during either decoding or
writing to the streamCopyright © 2022. All rights reserved.