Package de.mhus.lib.core.util
Class Base64
- java.lang.Object
-
- de.mhus.lib.core.util.Base64
-
public class Base64 extends Object
- Author:
- Brian Wing Shun Chan
-
-
Constructor Summary
Constructors Constructor Description Base64()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static UUIDbase64ToUuid(String uuidAsBase)static byte[]decode(String base64)static StringdecodeToString(String encoded)static Stringencode(byte[] raw)static Stringencode(byte[] raw, int offset, int length)static Stringencode(String value)protected static char[]encodeBlock(byte[] raw, int offset, int lastIndex)protected static chargetChar(int sixbit)protected static intgetValue(char c)static StringobjectToString(Object o)static StringuuidToBase64(UUID uuid)
-
-
-
Method Detail
-
decode
public static byte[] decode(String base64)
-
encode
public static String encode(byte[] raw)
-
encode
public static String encode(byte[] raw, int offset, int length)
-
encodeBlock
protected static char[] encodeBlock(byte[] raw, int offset, int lastIndex)
-
getChar
protected static char getChar(int sixbit)
-
getValue
protected static int getValue(char c)
-
-