public final class Base64Encoder extends Object
Constructor and Description |
---|
Base64Encoder()
Construct a Base64Encoder.
|
Modifier and Type | Method and Description |
---|---|
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.
|
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()
Copyright © 2016. All rights reserved.