|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.castor.core.util.Base64Encoder
public final class Base64Encoder
Class encodes the bytes written to the OutPutStream to a Base64 encoded string. The encoded string can be retrieved by as a whole by the toString() method or splited into lines of 72 characters by the toStringArray() method.
| Constructor Summary | |
|---|---|
Base64Encoder()
Construct a Base64Encoder. |
|
| Method Summary | |
|---|---|
static char[] |
encode(byte[] bytes)
Encode given byte array into a encoded character array. |
char[] |
getCharArray()
Get Base64 encoded characters as an array. |
void |
reset()
Reset Base64Encoder to its initial state. |
void |
translate(byte[] bytes)
Translate all bytes of given array by appending each to octet buffer. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Base64Encoder()
| Method Detail |
|---|
public static char[] encode(byte[] bytes)
bytes - The byte array to be encoded.
public void reset()
public void translate(byte[] bytes)
bytes - The byte array to be encoded.public char[] getCharArray()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||