com.cafesoft.core.util
Class Base64
java.lang.Object
|
+--com.cafesoft.core.util.Base64
- public class Base64
- extends Object
Base64 provides static methods to encode and decode byte
arrays to Base 64 character arrays.
|
Method Summary |
static byte[] |
decode(char[] data)
Returns an array of bytes which were encoded in the passed
character array. |
static char[] |
encode(byte[] data)
Returns an array of base64-encoded characters to represent the
passed data array. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Base64
public Base64()
encode
public static char[] encode(byte[] data)
- Returns an array of base64-encoded characters to represent the
passed data array.
- Parameters:
data - the array of bytes to encode
- Returns:
- base64-coded character array.
decode
public static byte[] decode(char[] data)
- Returns an array of bytes which were encoded in the passed
character array.
- Parameters:
data - the array of base64-encoded characters
- Returns:
- decoded data array
Generated on 8:41:50 AM June 06, 2005, © 1996-2005 Cafésoft LLC. All rights reserved.