|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.acplt.oncrpc.web.Base64
public abstract class Base64
The abstract Base64 class provides static methods to convert
back and forth between binary and base64-encoded data.
| Field Summary | |
|---|---|
private static byte[] |
decodingBase64Alephbeth
Mapping from base64 alphabet to binary 0-63. |
private static byte[] |
encodingBase64Alephbeth
Mapping from binary 0-63 to base64 alphabet according to RFC 2045. |
| Constructor Summary | |
|---|---|
Base64()
|
|
| Method Summary | |
|---|---|
static int |
decode(byte[] encodedData,
int encodedOffset,
int length,
byte[] binaryData,
int binaryOffset)
Converts base64 encoded data into binary data. |
static int |
encode(byte[] binaryData,
int binaryOffset,
int length,
byte[] encodedData,
int encodedOffset)
Converts binary data into base64 encoded data. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private static final byte[] encodingBase64Alephbeth
private static final byte[] decodingBase64Alephbeth
| Constructor Detail |
|---|
public Base64()
| Method Detail |
|---|
public static int encode(byte[] binaryData,
int binaryOffset,
int length,
byte[] encodedData,
int encodedOffset)
binaryData - Binary data to be encoded.binaryOffset - Offset into binaryData where to
the data to be encoded begins.length - Length of data to encode.encodedData - Buffer receiving base64 encoded data.encodedOffset - Offset into encodedData where the
store base64 encoded data.
public static int decode(byte[] encodedData,
int encodedOffset,
int length,
byte[] binaryData,
int binaryOffset)
encodedData - Base64 encoded data.encodedOffset - Offset into encodedData where the
base64 encoded data starts.length - Length of encoded data.binaryData - Decoded (binary) data.binaryOffset - Offset into binaryData where to
store the decoded binary data.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||