public class Base64 extends Object
From java.util.prefs.
Modifier and Type | Method and Description |
---|---|
static byte[] |
altBase64ToByteArray(String s)
Translates the specified "alternate representation" Base64 string
into a byte array.
|
static byte[] |
base64ToByteArray(String s)
Translates the specified Base64 string (as per Preferences.get(byte[]))
into a byte array.
|
static String |
byteArrayToAltBase64(byte[] a)
Translates the specified byte array into an "alternate representation"
Base64 string.
|
static String |
byteArrayToBase64(byte[] a)
Translates the specified byte array into a Base64 string as per
Preferences.put(byte[]).
|
public static String byteArrayToBase64(byte[] a)
public static String byteArrayToAltBase64(byte[] a)
public static byte[] base64ToByteArray(String s)
IllegalArgumentException
- if s is not a valid Base64
string.public static byte[] altBase64ToByteArray(String s)
IllegalArgumentException
- or ArrayOutOfBoundsException
if s is not a valid alternate representation
Base64 string.Copyright © 2004–2020. All rights reserved.