java.lang.Object
org.minidns.idna.DefaultIdnaTransformator
- All Implemented Interfaces:
IdnaTransformator
IDNA transformator backed by
IDN, with a root-label workaround.Constructor Summary
ConstructorsMethod Summary
All Methods
Constructor Details
DefaultIdnaTransformator
public DefaultIdnaTransformator()Constructor. Each transform is a stateless delegation toIDN, so a bare instance is usable wherever an IdnaTransformator is required.
Method Details
toASCII
Converts a domain name to its ASCII (punycode) form, passing a bare dot through unchanged because some IDN implementations reject it.- Specified by:
toASCIIin interfaceIdnaTransformator- Parameters:
input- the Unicode domain name- Returns:
- the ACE-encoded domain name
toUnicode
Converts an ASCII (punycode) domain name back to its Unicode form.- Specified by:
toUnicodein interfaceIdnaTransformator- Parameters:
input- the ACE-encoded domain name- Returns:
- the Unicode domain name