Package overit.geocall.util
Class Base64
java.lang.Object
overit.geocall.util.Base64
Class that is used for base64 encoding and decoding
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
Base64
public Base64()
-
-
Method Details
-
encode
- Parameters:
s- The string to encodenormalize- Boolean indicating if it should be normalized- Returns:
- The encoded string
-
encode
public static final String encode(String s, String charset, boolean normalize) throws UnsupportedEncodingException - Parameters:
s- The string to encodecharset- The anme of a supported charsetnormalize- Boolean indicating if it should be normalized- Returns:
- The encoded string
- Throws:
UnsupportedEncodingException- If the character encoding is not supported
-
encode
- Parameters:
d- An array of byte to encodenormalize- Boolean indicating if it should be normalized- Returns:
- The encoded string
-
encode
- Parameters:
d- An array of byte to encoden- The lenght of the encodingnormalize- Boolean indicating if it should be normalized- Returns:
- The encoded string
-
decode
- Parameters:
str- The string to decode- Returns:
- An array of decoded bytes
-
decode
public static final byte[] decode(byte[] data) - Parameters:
data- An array of bytes to decode- Returns:
- THe decoded array of bytes
-