Class BareJidEncoder.UrlSafeEncoder
- java.lang.Object
-
- org.jivesoftware.smack.util.stringencoder.BareJidEncoder
-
- org.jivesoftware.smack.util.stringencoder.BareJidEncoder.UrlSafeEncoder
-
- All Implemented Interfaces:
StringEncoder<BareJid>
- Enclosing class:
- BareJidEncoder
public static class BareJidEncoder.UrlSafeEncoder extends BareJidEncoder
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.jivesoftware.smack.util.stringencoder.BareJidEncoder
BareJidEncoder.LegacyEncoder, BareJidEncoder.UrlSafeEncoder
-
-
Constructor Summary
Constructors Constructor Description UrlSafeEncoder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BareJid
decode(String string)
Decodes a string back to it's initial representation.String
encode(BareJid jid)
Encodes an object to another representation.
-
-
-
Constructor Detail
-
UrlSafeEncoder
public UrlSafeEncoder()
-
-
Method Detail
-
encode
public String encode(BareJid jid)
Description copied from interface:StringEncoder
Encodes an object to another representation.- Parameters:
jid
- the object to encode.- Returns:
- the encoded String
-
decode
public BareJid decode(String string)
Description copied from interface:StringEncoder
Decodes a string back to it's initial representation.- Parameters:
string
- the string to decode.- Returns:
- the decoded object
-
-