public class TBase64EncodingStrategy extends java.lang.Object implements TEncodingStrategy
Modifier | Constructor and Description |
---|---|
protected |
TBase64EncodingStrategy()
This class isn't meant to be instantiated.
|
Modifier and Type | Method and Description |
---|---|
byte[] |
decode(byte[] data)
This method decodes the given byte[] using the base64-encoding
specified in RFC-2045 (Section 6.8).
|
java.lang.String |
decode(java.lang.String str)
This method decodes the given string using the base64-encoding
specified in RFC-2045 (Section 6.8).
|
byte[] |
encode(byte[] data)
This method encodes the given byte[] using the base64-encoding
specified in RFC-2045 (Section 6.8).
|
java.lang.String |
encode(java.lang.String str)
This method encodes the given string using the base64-encoding
specified in RFC-2045 (Section 6.8).
|
static TBase64EncodingStrategy |
getInstance() |
protected TBase64EncodingStrategy()
public static TBase64EncodingStrategy getInstance()
public java.lang.String encode(java.lang.String str)
encode
in interface TEncodingStrategy
str
- the stringpublic byte[] encode(byte[] data)
encode
in interface TEncodingStrategy
data
- the datapublic java.lang.String decode(java.lang.String str)
decode
in interface TEncodingStrategy
str
- the base64-encoded string.public byte[] decode(byte[] data)
decode
in interface TEncodingStrategy
data
- the base64-encoded data.Copyright (c) 2017 Software AG. All Rights Reserved.