public final class Base64Representation extends Object implements BytesRepresentation
| Constructor and Description |
|---|
Base64Representation()
Creates a new instance of Base64 representation.
|
| Modifier and Type | Method and Description |
|---|---|
byte[] |
toBytes(String base64)
Converts given
String in this representation back to to byte array. |
String |
toString(byte[] bytes)
Converts given byte array to
String in this representation. |
public Base64Representation()
public String toString(byte[] bytes) throws IllegalArgumentException
String in this representation.toString in interface BytesRepresentationbytes - bytes to be convertedIllegalArgumentException - possible exception if input is null or cannot be convertedpublic byte[] toBytes(String base64) throws IllegalArgumentException
String in this representation back to to byte array.toBytes in interface BytesRepresentationbase64 - Base64 string input to be convertedIllegalArgumentException - possible exception if input is null or cannot be convertedCopyright © 2019. All rights reserved.