public final class Base64 extends Object
Constructor and Description |
---|
Base64()
Ctor.
|
Modifier and Type | Method and Description |
---|---|
byte[] |
decode(byte[] input)
Base64-decode the input array.
|
byte[] |
decode(String input)
Base64-decode the input string.
|
byte[] |
encode(byte[] input)
Base64-encode the input array.
|
byte[] |
encode(byte[] input,
boolean linebreak)
Base64-encode the input array.
|
byte[] |
encode(String input)
Base64-encode the input string.
|
byte[] |
encode(String input,
boolean linebreak)
Base64-encode the input string.
|
public byte[] encode(String input) throws IOException
encode(input, false)
.input
- The value to be encoded.IOException
- For anything gone wrongpublic byte[] encode(String input, boolean linebreak) throws IOException
input
- The value to be encoded.linebreak
- Set to true to insert line breaks after 76 chars.IOException
- For anything gone wrongpublic byte[] encode(byte[] input) throws IOException
encode(input, false)
.input
- The value to be encoded.IOException
- For anything gone wrongpublic byte[] encode(byte[] input, boolean linebreak) throws IOException
input
- The value to be encoded.linebreak
- Set to true to insert line breaks after 76 chars.IOException
- For anything gone wrongpublic byte[] decode(String input) throws IOException
input
- The value to be decoded.IOException
- For anything gone wrongpublic byte[] decode(byte[] input) throws IOException
input
- The value to be decoded.IOException
- For anything gone wrongCopyright © 2015–2017 Take. All rights reserved.