|
OpenShift Java Client 2.5.0.Final | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.openshift.client.utils.Base64Coder
public class Base64Coder
A utility class that offers methods to encode and decode strings from and to base64
Method Summary | |
---|---|
static String |
decode(byte[] encoded)
|
static String |
decode(String encoded)
Decodes the given base64 encoded string. |
static String |
encode(byte[] unencoded)
Encodes the given byte array to a base64 encoded String |
static String |
encode(String unencoded)
Encodes the given string to a base64 encoded string. |
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[] unencoded)
unencoded
- the array of unencoded bytes that shall get encoded
public static String encode(String unencoded)
null
if the given string is null
.
unencoded
-
public static String decode(byte[] encoded)
public static String decode(String encoded)
null
if the
given string is null
.
encoded
- the base64 encoded string
|
OpenShift Java Client 2.5.0.Final | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |