Top Description Fields Constructors Methods
org.apache.http.client.utils

public Class JdkIdn

extends Object
implements Idn
Class Inheritance
All Implemented Interfaces
org.apache.http.client.utils.Idn
Annotations
@Contract
threading:IMMUTABLE
@Deprecated
Imports
java.lang.reflect.InvocationTargetException, .Method, org.apache.http.annotation.Contract, .ThreadingBehavior

Deprecated

(4.4) use standard java.net.IDN.

Uses the java.net.IDN class through reflection.
Since
4.0

Field Summary

Modifier and TypeField and Description
private final Method

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public String
toUnicode(final String
the Punycode representation
punycode
)

Implements org.apache.http.client.utils.Idn.toUnicode.

Converts a name from its punycode representation to Unicode.
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

toUnicodeback to summary
private final Method toUnicode

Constructor Detail

JdkIdnback to summary
public JdkIdn() throws ClassNotFoundException
Exceptions
ClassNotFoundException:
if java.net.IDN is not available

Method Detail

toUnicodeback to summary
public String toUnicode(final String punycode)

Implements org.apache.http.client.utils.Idn.toUnicode.

Doc from org.apache.http.client.utils.Idn.toUnicode.

Converts a name from its punycode representation to Unicode. The name may be a single hostname or a dot-separated qualified domain name.

Parameters
punycode:String

the Punycode representation

Returns:String

the Unicode domain name

Annotations
@Override