Class JidCreate


  • public class JidCreate
    extends Object
    API to create JIDs (XMPP addresses) from Strings and CharSequences.

    If the input was user generated, e.g. captured from some sort of user interface, fromUnescaped(String) should be used instead. This allows the user to enter unescaped JID values. You can use JidUtil.isValidEntityBareJid(CharSequence) to query, e.g. while the user it entering it, if a given CharSequence is a valid bare JID.

    JIDs created from input received from an XMPP source should use from(String).

    JidCreate uses caches for efficient Jid construction, But it's not guaranteed that the same String or CharSequence will yield the same Jid instance.

    See Also:
    Jid