类 ContentUtil
java.lang.Object
com.sh.mail.mime4j.util.ContentUtil
Description:
Title:首亨软件 - TSS/CRM等
- 从以下版本开始:
- Aug 16, 2012
-
方法概要
修饰符和类型方法说明static Stringdecode(ByteSequence byteSequence) Decodes the specified sequence of bytes into a string using the US-ASCII charset.static Stringdecode(ByteSequence byteSequence, int offset, int length) Decodes a sub-sequence of the specified sequence of bytes into a string using the US-ASCII charset.static Stringdecode(Charset charset, ByteSequence byteSequence) Decodes the specified sequence of bytes into a string using the specified charset.static Stringdecode(Charset charset, ByteSequence byteSequence, int offset, int length) Decodes a sub-sequence of the specified sequence of bytes into a string using the specified charset.static ByteSequenceEncodes the specified string into an immutable sequence of bytes using the US-ASCII charset.static ByteSequenceEncodes the specified string into an immutable sequence of bytes using the specified charset.
-
方法详细资料
-
encode
Encodes the specified string into an immutable sequence of bytes using the US-ASCII charset.- 参数:
string- string to encode.- 返回:
- encoded string as an immutable sequence of bytes.
-
encode
Encodes the specified string into an immutable sequence of bytes using the specified charset.- 参数:
charset- Java charset to be used for the conversion.string- string to encode.- 返回:
- encoded string as an immutable sequence of bytes.
-
decode
Decodes the specified sequence of bytes into a string using the US-ASCII charset.- 参数:
byteSequence- sequence of bytes to decode.- 返回:
- decoded string.
-
decode
Decodes the specified sequence of bytes into a string using the specified charset.- 参数:
charset- Java charset to be used for the conversion.byteSequence- sequence of bytes to decode.- 返回:
- decoded string.
-
decode
Decodes a sub-sequence of the specified sequence of bytes into a string using the US-ASCII charset.- 参数:
byteSequence- sequence of bytes to decode.offset- offset into the byte sequence.length- number of bytes.- 返回:
- decoded string.
-
decode
Decodes a sub-sequence of the specified sequence of bytes into a string using the specified charset.- 参数:
charset- Java charset to be used for the conversion.byteSequence- sequence of bytes to decode.offset- offset into the byte sequence.length- number of bytes.- 返回:
- decoded string.
-