Skip to content

Most visited

Recently visited

navigation

IDNA.Info

public static final class IDNA.Info
extends Object

java.lang.Object
   ↳ android.icu.text.IDNA.Info


Output container for IDNA processing errors. The Info class is not suitable for subclassing.

Summary

Public constructors

IDNA.Info()

Constructor.

Public methods

Set<IDNA.Error> getErrors()

Returns a set indicating IDNA processing errors.

boolean hasErrors()

Were there IDNA processing errors?

boolean isTransitionalDifferent()

Returns true if transitional and nontransitional processing produce different results.

Inherited methods

From class java.lang.Object

Public constructors

IDNA.Info

added in API level 24
IDNA.Info ()

Constructor.

Public methods

getErrors

added in API level 24
Set<IDNA.Error> getErrors ()

Returns a set indicating IDNA processing errors.

Returns
Set<IDNA.Error> set of processing errors (modifiable, and not null)

hasErrors

added in API level 24
boolean hasErrors ()

Were there IDNA processing errors?

Returns
boolean true if there were processing errors

isTransitionalDifferent

added in API level 24
boolean isTransitionalDifferent ()

Returns true if transitional and nontransitional processing produce different results. This is the case when the input label or domain name contains one or more deviation characters outside a Punycode label (see UTS #46).

  • With nontransitional processing, such characters are copied to the destination string.
  • With transitional processing, such characters are mapped (sharp s/sigma) or removed (joiner/nonjoiner).

Returns
boolean true if transitional and nontransitional processing produce different results

This site uses cookies to store your preferences for site-specific language and display options.

Get the latest Android developer news and tips that will help you find success on Google Play.

* Required Fields

Hooray!

Follow Google Developers on WeChat

Browse this site in ?

You requested a page in , but your language preference for this site is .

Would you like to change your language preference and browse this site in ? If you want to change your language preference later, use the language menu at the bottom of each page.

This class requires API level or higher

This doc is hidden because your selected API level for the documentation is . You can change the documentation API level with the selector above the left navigation.

For more information about specifying the API level your app requires, read Supporting Different Platform Versions.

Take a short survey?
Help us improve the Android developer experience.
(Sep 2017 survey)