|
PulpCore | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object pulpcore.util.Base64
public class Base64
Base64 encoding and decoding for network transport. This class follows the spec in RFC 4648.
Method Summary | |
---|---|
static byte[] |
decode(String data)
Decodes a Base64 string using the standard Base64 alphabet. |
static byte[] |
decodeURLSafe(String data)
Decodes a Base64 string using the URL-safe Base64 alphabet. |
static String |
encode(byte[] data)
Encodes binary data using the standard Base64 alphabet. |
static String |
encode(byte[] data,
boolean addPadding)
Encodes binary data using the standard Base64 alphabet. |
static String |
encodeURLSafe(byte[] data)
Encodes binary data using the URL-safe Base64 alphabet. |
static String |
encodeURLSafe(byte[] data,
boolean addPadding)
Encodes binary data using the URL-safe Base64 alphabet. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static String encode(byte[] data)
public static String encode(byte[] data, boolean addPadding)
public static byte[] decode(String data)
public static String encodeURLSafe(byte[] data)
public static String encodeURLSafe(byte[] data, boolean addPadding)
public static byte[] decodeURLSafe(String data)
|
PulpCore | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |