public class Domainpart extends Part
You can create instances of this class from Strings using from(String).
| Modifier and Type | Method and Description |
|---|---|
static Domainpart |
from(java.lang.String domain)
Get the
Domainpart representing the input String. |
static Domainpart |
fromOrThrowUnchecked(java.lang.CharSequence cs)
Like
from(String) but does throw an unchecked IllegalArgumentException instead of a
XmppStringprepException. |
assertNotLongerThan1023BytesOrEmpty, charAt, equals, hashCode, intern, length, subSequence, toStringpublic static Domainpart fromOrThrowUnchecked(java.lang.CharSequence cs)
from(String) but does throw an unchecked IllegalArgumentException instead of a
XmppStringprepException.cs - the character sequence which should be transformed to a DomainpartDomainpart if no exception occursjava.lang.IllegalArgumentException - if the given input is not a valid Domainpartfrom(String)public static Domainpart from(java.lang.String domain) throws org.jxmpp.stringprep.XmppStringprepException
Domainpart representing the input String.domain - the input String.org.jxmpp.stringprep.XmppStringprepException - if an error occurs.