Package com.thoughtworks.xstream.core
Interface StringCodec
-
- All Known Implementing Classes:
Base64Encoder
,Base64JavaUtilCodec
,Base64JAXBCodec
public interface StringCodec
Interface for an encoder and decoder of data to string values and back.- Since:
- 1.4.11
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description byte[]
decode(java.lang.String encoded)
Decode the provided encoded string.java.lang.String
encode(byte[] data)
Encode the provided data.
-
-
-
Method Detail
-
decode
byte[] decode(java.lang.String encoded)
Decode the provided encoded string.- Parameters:
encoded
- the encoded string- Returns:
- the decoded data
- Since:
- 1.4.11
-
encode
java.lang.String encode(byte[] data)
Encode the provided data.- Parameters:
data
- the data to encode- Returns:
- the data encoded as string
- Since:
- 1.4.11
-
-