|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjodd.util.Base64
public class Base64
One of the fastest Base64 encoder/decoder implementations. Base64 encoding is defined in RFC 2045.
Constructor Summary | |
---|---|
Base64()
|
Method Summary | |
---|---|
static byte[] |
decode(byte[] arr)
Decodes a BASE64 encoded byte array. |
byte[] |
decode(char[] arr)
Decodes a BASE64 encoded char array. |
static byte[] |
decode(String s)
Decodes a BASE64 encoded string. |
static String |
decodeToString(String s)
|
static byte[] |
encodeToByte(byte[] arr)
|
static byte[] |
encodeToByte(byte[] arr,
boolean lineSep)
Encodes a raw byte array into a BASE64 byte[] . |
static byte[] |
encodeToByte(String s)
|
static char[] |
encodeToChar(byte[] arr)
|
static char[] |
encodeToChar(byte[] arr,
boolean lineSeparator)
Encodes a raw byte array into a BASE64 char[] . |
static char[] |
encodeToChar(String s)
|
static String |
encodeToString(byte[] arr)
|
static String |
encodeToString(byte[] arr,
boolean lineSep)
Encodes a raw byte array into a BASE64 String . |
static String |
encodeToString(String s)
|
static char[] |
getAlphabet()
Returns Base64 characters, a clone of used array. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Base64()
Method Detail |
---|
public static char[] getAlphabet()
public static char[] encodeToChar(String s)
public static char[] encodeToChar(byte[] arr)
public static char[] encodeToChar(byte[] arr, boolean lineSeparator)
char[]
.
public byte[] decode(char[] arr)
public static byte[] encodeToByte(String s)
public static byte[] encodeToByte(byte[] arr)
public static byte[] encodeToByte(byte[] arr, boolean lineSep)
byte[]
.
public static byte[] decode(byte[] arr)
public static String encodeToString(String s)
public static String decodeToString(String s)
public static String encodeToString(byte[] arr)
public static String encodeToString(byte[] arr, boolean lineSep)
String
.
public static byte[] decode(String s)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |