public class Icu4jXmppStringprep extends Object implements XmppStringprep
Modifier and Type | Method and Description |
---|---|
String |
domainprep(String string)
Performs String preparation on the domainpart String of a JID.
|
static Icu4jXmppStringprep |
getInstance()
Get the ICU4J Stringprep implementation singleton.
|
String |
localprep(String string)
Performs String preparation on the localpart String of a JID.
|
String |
resourceprep(String string)
Performs String preparation on the resourcepart String of a JID.
|
static void |
setup()
Setup the ICU4J Stringprep implementation as active Stringprep implementation.
|
public static void setup()
public static Icu4jXmppStringprep getInstance()
public String localprep(String string) throws XmppStringprepException
XmppStringprep
localprep
in interface XmppStringprep
string
- the String to transform.XmppStringprepException
- if there is an error.public String domainprep(String string) throws XmppStringprepException
XmppStringprep
domainprep
in interface XmppStringprep
string
- the String to transform.XmppStringprepException
- if there is an error.public String resourceprep(String string) throws XmppStringprepException
XmppStringprep
resourceprep
in interface XmppStringprep
string
- the String to transform.XmppStringprepException
- if there is an error.