类 CodecUtil
java.lang.Object
com.sh.mail.mime4j.codec.CodecUtil
Description:
Title:首亨软件 - TSS/CRM等
- 从以下版本开始:
- Aug 16, 2012
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明static voidcopy(InputStream in, OutputStream out) Copies the contents of one stream to the other.static voidencodeBase64(InputStream in, OutputStream out) Encodes the given stream using base64.static voidencodeQuotedPrintable(InputStream in, OutputStream out) Encodes the given stream using Quoted-Printable.static voidEncodes the given stream using Quoted-Printable.static OutputStreamwrapBase64(OutputStream out) Wraps the given stream in a Base64 encoder.static OutputStreamwrapQuotedPrintable(OutputStream out, boolean binary) Wraps the given stream in a Quoted-Printable encoder.
-
构造器详细资料
-
CodecUtil
public CodecUtil()
-
-
方法详细资料
-
copy
Copies the contents of one stream to the other.- 参数:
in- not nullout- not null- 抛出:
IOException- IOException
-
encodeQuotedPrintableBinary
Encodes the given stream using Quoted-Printable. This assumes that stream is binary and therefore escapes all line endings.- 参数:
in- not nullout- not null- 抛出:
IOException- IOException
-
encodeQuotedPrintable
Encodes the given stream using Quoted-Printable. This assumes that stream is text and therefore does not escape all line endings.- 参数:
in- not nullout- not null- 抛出:
IOException- IOException
-
encodeBase64
Encodes the given stream using base64.- 参数:
in- not nullout- not null- 抛出:
IOException- if an I/O error occurs
-
wrapQuotedPrintable
Wraps the given stream in a Quoted-Printable encoder.- 参数:
out- not nullbinary- boolean- 返回:
- encoding outputstream
- 抛出:
IOException- IOException
-
wrapBase64
Wraps the given stream in a Base64 encoder.- 参数:
out- not null- 返回:
- encoding outputstream
- 抛出:
IOException- IOException
-