|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectunsw.cse.mica.util.Base64
public class Base64
This class provides methods for encoding and decoding binary data into base64 notation so it can be embedded in mobs.
Nested Class Summary | |
---|---|
static class |
Base64.CorruptedDataException
An exception that is thrown when base64 data is decoded and it is found to be corrupted. |
Constructor Summary | |
---|---|
Base64()
|
Method Summary | |
---|---|
static byte[] |
decode(char[] data)
Decodes a sequence of characters in base64 notation into binary data. |
static byte[] |
decode(char[] data,
int offset,
int len)
Decodes a sequence of characters in base64 notation into binary data. |
static char[] |
encode(byte[] data)
Encodes binary data into a sequences of characters. |
static char[] |
encode(byte[] data,
int offset,
int len)
Encodes binary data into a sequences of characters. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Base64()
Method Detail |
---|
public static char[] encode(byte[] data)
data
- the data to be encoded
public static char[] encode(byte[] data, int offset, int len)
data
- the data to be encodedoffset
- starting point of the data to be encodedlen
- the number of bytes of data to be encoded
public static byte[] decode(char[] data) throws Base64.CorruptedDataException
data
- the sequence of characters to be decoded
Base64.CorruptedDataException
- if the sequence of characters in array are not base64public static byte[] decode(char[] data, int offset, int len) throws Base64.CorruptedDataException
data
- the sequence of characters to be decodedoffset
- starting point of the data to be decodedlen
- the number of bytes of data to be decoded
Base64.CorruptedDataException
- if the sequence of characters in array are not base64
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |