public class MiniDnsIdna extends Object
| Constructor and Description |
|---|
MiniDnsIdna() |
| Modifier and Type | Method and Description |
|---|---|
static void | setActiveTransformator(IdnaTransformator idnaTransformator)Sets the active IDNA transformator implementation. |
static String | toASCII(String string)Converts a Unicode string to its ASCII representation using IDNA. |
static String | toUnicode(String string)Converts an ASCII string back to its Unicode representation using IDNA. |
public static void setActiveTransformator(IdnaTransformator idnaTransformator)
idnaTransformator - the transformator to use, must not be nullIllegalArgumentException - if idnaTransformator is nullpublic static String toASCII(String string)
string - the Unicode string to convert