|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objecteu.beesoft.gaia.util.Base64
public class Base64
A Base64 Encoder/Decoder.
This class is used to encode and decode data in Base64 format as described in RFC 1521.
Method Summary | |
---|---|
static byte[] |
decode(byte[] bytes)
Decodes given base64 byte array to byte array. |
static byte[] |
decode(byte[] bytes,
int offset,
int length)
Decodes given base64 byte array to byte array. |
static byte[] |
decode(char[] chars)
Decodes given base64 character array to byte array. |
static byte[] |
decode(char[] chars,
int offset,
int length)
Decodes given base64 character array to byte array. |
static byte[] |
decode(java.lang.String string)
Decodes given base64 character string to byte array. |
static java.lang.String |
encode(byte[] bytes)
Encodes given byte array to base64 character string. |
static java.lang.String |
encode(byte[] bytes,
int offset,
int length)
Encodes given byte array to base64 character string. |
static byte[] |
encodeToBytes(byte[] bytes)
Encodes given byte array to base64 byte array. |
static byte[] |
encodeToBytes(byte[] bytes,
int offset,
int length)
Encodes given byte array to base64 byte array. |
static char[] |
encodeToChars(byte[] bytes)
Encodes given byte array to base64 character array. |
static char[] |
encodeToChars(byte[] bytes,
int offset,
int length)
Encodes given byte array to base64 character array. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static java.lang.String encode(byte[] bytes)
bytes
- - byte array to encode
public static java.lang.String encode(byte[] bytes, int offset, int length)
bytes
- - byte array to encodeoffset
- - offset in byte array with first byte to encodelength
- - number of bytes to encode
public static byte[] encodeToBytes(byte[] bytes)
bytes
- - byte array to encode
public static byte[] encodeToBytes(byte[] bytes, int offset, int length)
bytes
- - byte array to encodeoffset
- - offset in byte array with first byte to encodelength
- - number of bytes to encode
public static char[] encodeToChars(byte[] bytes)
bytes
- - byte array to encode
public static char[] encodeToChars(byte[] bytes, int offset, int length)
bytes
- - byte array to encodeoffset
- - offset in byte array with first byte to encodelength
- - number of bytes to encode
public static byte[] decode(java.lang.String string)
string
- - string to decode
public static byte[] decode(byte[] bytes)
bytes
- - byte array to decode
public static byte[] decode(byte[] bytes, int offset, int length)
bytes
- - byte array to decodeoffset
- - offset in byte array with first byte to decodelength
- - number of bytes to decode
public static byte[] decode(char[] chars)
chars
- - character array to decode
public static byte[] decode(char[] chars, int offset, int length)
chars
- - character array to decodeoffset
- - offset in byte array with first byte to decodelength
- - number of bytes to decode
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |