|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.glite.slcs.util.Base64
public class Base64
Base64 is a wrapper class for the commons-codec apache library.
Method Summary | |
---|---|
static byte[] |
byteEncode(byte[] bytes)
BASE64 encodes the given byte array. |
static byte[] |
decode(byte[] b64Bytes)
Decodes the given BASE64 encoded byte array. |
static byte[] |
decode(java.lang.String b64)
Decodes the given BASE64 encoded string. |
static java.lang.String |
encode(byte[] bytes)
BASE64 encodes the given bytes array. |
static java.lang.String |
encode(byte[] bytes,
int blockLength)
BASE64 encodes the given bytes 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
- The bytes array to encode BASE64.
public static byte[] byteEncode(byte[] bytes)
bytes
- The byte array to encode.
public static java.lang.String encode(byte[] bytes, int blockLength)
bytes
- The bytes array to encode.blockLength
- The line length of the blocks.
public static byte[] decode(java.lang.String b64)
b64
- The BASE64 encoded string to decode.
public static byte[] decode(byte[] b64Bytes)
b64Bytes
- The BASE64 encoded byte array to decode.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |