com.ibm.icu.text.StringPrep Java Examples

The following examples show how to use com.ibm.icu.text.StringPrep. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: Icu4jXmppStringprep.java    From jxmpp with Apache License 2.0 5 votes vote down vote up
@Override
public String localprep(String string) throws XmppStringprepException {
	try {
		return NODEPREP.prepare(string, StringPrep.DEFAULT);
	} catch (StringPrepParseException e) {
		throw new XmppStringprepException(string, e);
	}
}
 
Example #2
Source File: Icu4jXmppStringprep.java    From jxmpp with Apache License 2.0 5 votes vote down vote up
@Override
public String domainprep(String string) throws XmppStringprepException {
	try {
		return DOMAINPREP.prepare(string, StringPrep.DEFAULT);
	} catch (StringPrepParseException e) {
		throw new XmppStringprepException(string, e);
	}
}
 
Example #3
Source File: Icu4jXmppStringprep.java    From jxmpp with Apache License 2.0 5 votes vote down vote up
@Override
public String resourceprep(String string) throws XmppStringprepException {
	try {
		return RESOURCEPREP.prepare(string, StringPrep.DEFAULT);
	} catch (StringPrepParseException e) {
		throw new XmppStringprepException(string, e);
	}
}