|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.dcm4che.util.Base64
public class Base64
Static methods for translating Base64 encoded strings to byte arrays and vice-versa.
Constructor Summary | |
---|---|
Base64()
|
Method Summary | |
---|---|
static byte[] |
altBase64ToByteArray(java.lang.String s)
Translates the specified "aternate representation" Base64 string into a byte array. |
static byte[] |
base64ToByteArray(java.lang.String s)
Translates the specified Base64 string (as per Preferences.get(byte[])) into a byte array. |
static java.lang.String |
byteArrayToAltBase64(byte[] a)
Translates the specified byte array into an "aternate representation" Base64 string. |
static java.lang.String |
byteArrayToBase64(byte[] a)
Translates the specified byte array into a Base64 string as per Preferences.put(byte[]). |
static void |
main(java.lang.String[] args)
|
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 java.lang.String byteArrayToBase64(byte[] a)
public static java.lang.String byteArrayToAltBase64(byte[] a)
public static byte[] base64ToByteArray(java.lang.String s)
java.lang.IllegalArgumentException
- if s is not a valid Base64
string.public static byte[] altBase64ToByteArray(java.lang.String s)
java.lang.IllegalArgumentException
- or ArrayOutOfBoundsException
if s is not a valid alternate representation
Base64 string.public static void main(java.lang.String[] args)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |