Class JdkIdn

  • All Implemented Interfaces:
    Idn

    @Contract(threading=IMMUTABLE)
    @Deprecated
    public class JdkIdn
    extends java.lang.Object
    implements Idn
    Deprecated.
    (4.4) use standard IDN.
    Uses the java.net.IDN class through reflection.
    Since:
    4.0
    • Constructor Summary

      Constructors 
      Constructor Description
      JdkIdn()
      Deprecated.
       
    • Method Summary

      All Methods Instance Methods Concrete Methods Deprecated Methods 
      Modifier and Type Method Description
      java.lang.String toUnicode​(java.lang.String punycode)
      Deprecated.
      Converts a name from its punycode representation to Unicode.
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • JdkIdn

        public JdkIdn()
               throws java.lang.ClassNotFoundException
        Deprecated.
        Throws:
        java.lang.ClassNotFoundException - if java.net.IDN is not available
    • Method Detail

      • toUnicode

        public java.lang.String toUnicode​(java.lang.String punycode)
        Deprecated.
        Description copied from interface: Idn
        Converts a name from its punycode representation to Unicode. The name may be a single hostname or a dot-separated qualified domain name.
        Specified by:
        toUnicode in interface Idn
        Parameters:
        punycode - the Punycode representation
        Returns:
        the Unicode domain name