public class ContentUtil
extends java.lang.Object
Description:
Title:首亨软件 - TSS/CRM等
| 限定符和类型 | 方法和说明 |
|---|---|
static java.lang.String |
decode(ByteSequence byteSequence)
Decodes the specified sequence of bytes into a string using the US-ASCII
charset.
|
static java.lang.String |
decode(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 java.lang.String |
decode(java.nio.charset.Charset charset,
ByteSequence byteSequence)
Decodes the specified sequence of bytes into a string using the specified
charset.
|
static java.lang.String |
decode(java.nio.charset.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 ByteSequence |
encode(java.nio.charset.Charset charset,
java.lang.String string)
Encodes the specified string into an immutable sequence of bytes using
the specified charset.
|
static ByteSequence |
encode(java.lang.String string)
Encodes the specified string into an immutable sequence of bytes using
the US-ASCII charset.
|
public static ByteSequence encode(java.lang.String string)
string - string to encode.public static ByteSequence encode(java.nio.charset.Charset charset, java.lang.String string)
charset - Java charset to be used for the conversion.string - string to encode.public static java.lang.String decode(ByteSequence byteSequence)
byteSequence - sequence of bytes to decode.public static java.lang.String decode(java.nio.charset.Charset charset,
ByteSequence byteSequence)
charset - Java charset to be used for the conversion.byteSequence - sequence of bytes to decode.public static java.lang.String decode(ByteSequence byteSequence, int offset, int length)
byteSequence - sequence of bytes to decode.offset - offset into the byte sequence.length - number of bytes.public static java.lang.String decode(java.nio.charset.Charset charset,
ByteSequence byteSequence,
int offset,
int length)
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.