|
||||||||||
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
Proxy for version 1.6 (or newer) of the Apache Commons Codec Base64
implementation.
This is needed in order to support platforms like Android which already include an older version of the Apache Commons Codec (Android includes version 1.3). To avoid a dependency library conflict, this library includes a reduced private copy of version 1.6 (or newer) of the Apache Commons Codec (using a tool like jarjar).
Method Summary | |
---|---|
static byte[] |
decodeBase64(byte[] base64Data)
Decodes Base64 data into octets. |
static byte[] |
decodeBase64(String base64String)
Decodes a Base64 String into octets. |
static byte[] |
encodeBase64(byte[] binaryData)
Encodes binary data using the base64 algorithm but does not chunk the output. |
static String |
encodeBase64String(byte[] binaryData)
Encodes binary data using the base64 algorithm but does not chunk the output. |
static byte[] |
encodeBase64URLSafe(byte[] binaryData)
Encodes binary data using a URL-safe variation of the base64 algorithm but does not chunk the output. |
static String |
encodeBase64URLSafeString(byte[] binaryData)
Encodes binary data using a URL-safe variation of the base64 algorithm but does not chunk the output. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static byte[] encodeBase64(byte[] binaryData)
binaryData
- binary data to encode
org.apache.commons.codec.binary.Base64#encodeBase64(byte[])
public static String encodeBase64String(byte[] binaryData)
binaryData
- binary data to encode
org.apache.commons.codec.binary.Base64#encodeBase64String(byte[])
public static byte[] encodeBase64URLSafe(byte[] binaryData)
binaryData
- binary data to encode
org.apache.commons.codec.binary.Base64#encodeBase64URLSafe(byte[])
public static String encodeBase64URLSafeString(byte[] binaryData)
binaryData
- binary data to encode
org.apache.commons.codec.binary.Base64#encodeBase64URLSafeString(byte[])
public static byte[] decodeBase64(byte[] base64Data)
base64Data
- Byte array containing Base64 data
org.apache.commons.codec.binary.Base64#decodeBase64(byte[])
public static byte[] decodeBase64(String base64String)
base64String
- String containing Base64 data
org.apache.commons.codec.binary.Base64#decodeBase64(String)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |