Top Description Methods
com.thoughtworks.xstream.core

public Interface StringCodec

Known Direct Implementers
com.thoughtworks.xstream.core.util.Base64Encoder, com.thoughtworks.xstream.core.util.Base64JavaUtilCodec, com.thoughtworks.xstream.core.util.Base64JAXBCodec

Interface for an encoder and decoder of data to string values and back.
Author
Jörg Schaible
Since
1.4.11

Method Summary

Modifier and TypeMethod and Description
public byte[]

Returns:

the decoded data
decode
(String
the encoded string
encoded
)

Decode the provided encoded string.

public String

Returns:

the data encoded as string
encode
(byte[]
the data to encode
data
)

Encode the provided data.

Method Detail

decodeback to summary
public byte[] decode(String encoded)

Decode the provided encoded string.

Parameters
encoded:String

the encoded string

Returns:byte[]

the decoded data

Since
1.4.11
encodeback to summary
public String encode(byte[] data)

Encode the provided data.

Parameters
data:byte[]

the data to encode

Returns:String

the data encoded as string

Since
1.4.11