Interface StringEncoder<O>
-
- All Known Implementing Classes:
BareJidEncoder,BareJidEncoder.LegacyEncoder,BareJidEncoder.UrlSafeEncoder
public interface StringEncoder<O>An interface for String encoder.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Odecode(java.lang.String string)Decodes a string back to it's initial representation.java.lang.Stringencode(O object)Encodes an object to another representation.
-
-
-
Method Detail
-
encode
java.lang.String encode(O object)
Encodes an object to another representation.- Parameters:
object- the object to encode.- Returns:
- the encoded String
-
decode
O decode(java.lang.String string)
Decodes a string back to it's initial representation.- Parameters:
string- the string to decode.- Returns:
- the decoded object
-
-