|
Apache JAMES Mime4j 0.6-redhat-2 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.james.mime4j.util.ContentUtil
public class ContentUtil
Utility methods for converting textual content of a message.
Method Summary | |
---|---|
static String |
decode(ByteSequence byteSequence)
Decodes the specified sequence of bytes into a string using the US-ASCII charset. |
static 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 String |
decode(Charset charset,
ByteSequence byteSequence)
Decodes the specified sequence of bytes into a string using the specified charset. |
static String |
decode(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(Charset charset,
String string)
Encodes the specified string into an immutable sequence of bytes using the specified charset. |
static ByteSequence |
encode(String string)
Encodes the specified string into an immutable sequence of bytes using the US-ASCII charset. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static ByteSequence encode(String string)
string
- string to encode.
public static ByteSequence encode(Charset charset, String string)
charset
- Java charset to be used for the conversion.string
- string to encode.
public static String decode(ByteSequence byteSequence)
byteSequence
- sequence of bytes to decode.
public static String decode(Charset charset, ByteSequence byteSequence)
charset
- Java charset to be used for the conversion.byteSequence
- sequence of bytes to decode.
public static 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 String decode(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.
|
Apache JAMES Mime4j 0.6-redhat-2 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |