|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.glassfish.jersey.internal.util.Base64
public class Base64
Utility class that implements base64 encoding and decoding.
| Constructor Summary | |
|---|---|
Base64()
|
|
| Method Summary | |
|---|---|
static byte[] |
decode(byte[] buffer)
Decodes Base64 data into octects. |
static java.lang.String |
decodeAsString(byte[] buffer)
Decodes array of bytes using base64 decoding and returns the result as a string. |
static java.lang.String |
decodeAsString(java.lang.String text)
Decodes a string using base64 and returns the result as another string. |
static byte[] |
encode(byte[] buffer)
Encodes array of bytes using base64 encoding. |
static java.lang.String |
encodeAsString(byte[] buffer)
Encodes array of bytes using base64 encoding and returns the result as a string. |
static java.lang.String |
encodeAsString(java.lang.String text)
Encodes a string using base64 and returns the result as another string. |
| 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 byte[] encode(byte[] buffer)
buffer - Array of bytes to be encoded.
public static byte[] decode(byte[] buffer)
buffer - Byte array containing Base64 data
public static java.lang.String encodeAsString(byte[] buffer)
buffer - Array of bytes to be encoded.
public static java.lang.String encodeAsString(java.lang.String text)
text - String to be encoded.
public static java.lang.String decodeAsString(byte[] buffer)
buffer - Array of bytes to be decoded.
public static java.lang.String decodeAsString(java.lang.String text)
text - String to be decoded.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||