|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.google.api.client.util.Base64
public class Base64
Method Summary | |
---|---|
static byte[] |
decode(byte[] source)
Low-level access to decoding ASCII characters in the form of a byte array. |
static byte[] |
decode(byte[] source,
int off,
int len)
Low-level access to decoding ASCII characters in the form of a byte array. |
static byte[] |
encode(byte[] source)
Similar to encode(byte[]) but returns a byte array instead of instantiating a String. |
static byte[] |
encode(byte[] source,
int off,
int len)
Similar to encode(byte[], int, int) but returns a byte array instead of instantiating
a String. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static byte[] encode(byte[] source)
encode(byte[])
but returns a byte array instead of instantiating a String.
This is more efficient if you're working with I/O streams and have large data sets to encode.
source
- The data to convert
NullPointerException
- if source array is nullpublic static byte[] encode(byte[] source, int off, int len)
encode(byte[], int, int)
but returns a byte array instead of instantiating
a String. This is more efficient if you're working with I/O streams and have large data sets to
encode.
source
- The data to convertoff
- Offset in array where conversion should beginlen
- Length of data to convert
NullPointerException
- if source array is null
IllegalArgumentException
- if source array, offset, or length are invalidpublic static byte[] decode(byte[] source) throws IOException
source
- The Base64 encoded data
IOException
public static byte[] decode(byte[] source, int off, int len) throws IOException
source
- The Base64 encoded dataoff
- The offset of where to begin decodinglen
- The length of characters to decode
IOException
- If bogus characters exist in source data
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |