Top Description Constructors Methods
com.thoughtworks.xstream.core.util

public Class Base64JAXBCodec

extends Object
implements StringCodec
Class Inheritance
All Implemented Interfaces
com.thoughtworks.xstream.core.StringCodec
Imports
javax.xml.bind.DatatypeConverter, com.thoughtworks.xstream.core.StringCodec

Base64 codec implementation based on JAXB.
Author
Jörg Schaible
Since
1.4.11

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public byte[]
decode(final String
the encoded string
base64
)

Implements com.thoughtworks.xstream.core.StringCodec.decode.

Decode the provided encoded string.
public String
encode(final byte[]
the data to encode
data
)

Implements com.thoughtworks.xstream.core.StringCodec.encode.

Encode the provided data.
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

Base64JAXBCodecback to summary
public Base64JAXBCodec()

Method Detail

decodeback to summary
public byte[] decode(final String base64)

Implements com.thoughtworks.xstream.core.StringCodec.decode.

Doc from com.thoughtworks.xstream.core.StringCodec.decode.

Decode the provided encoded string.

Parameters
base64:String

the encoded string

Returns:byte[]

the decoded data

Annotations
@Override
encodeback to summary
public String encode(final byte[] data)

Implements com.thoughtworks.xstream.core.StringCodec.encode.

Doc from com.thoughtworks.xstream.core.StringCodec.encode.

Encode the provided data.

Parameters
data:byte[]

the data to encode

Returns:String

the data encoded as string

Annotations
@Override