Class Base64JAXBCodec
- java.lang.Object
-
- com.thoughtworks.xstream.core.util.Base64JAXBCodec
-
- All Implemented Interfaces:
StringCodec
public class Base64JAXBCodec extends java.lang.Object implements StringCodec
Base64 codec implementation based on JAXB.- Since:
- 1.4.11
-
-
Constructor Summary
Constructors Constructor Description Base64JAXBCodec()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description byte[]
decode(java.lang.String base64)
Decode the provided encoded string.java.lang.String
encode(byte[] data)
Encode the provided data.
-
-
-
Method Detail
-
decode
public byte[] decode(java.lang.String base64)
Description copied from interface:StringCodec
Decode the provided encoded string.- Specified by:
decode
in interfaceStringCodec
- Parameters:
base64
- the encoded string- Returns:
- the decoded data
-
encode
public java.lang.String encode(byte[] data)
Description copied from interface:StringCodec
Encode the provided data.- Specified by:
encode
in interfaceStringCodec
- Parameters:
data
- the data to encode- Returns:
- the data encoded as string
-
-