Most visited

Recently visited

Added in API level 24

IDNA.Info

public static final class IDNA.Info
extends Object

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


IDNA处理错误的输出容器。 Info类不适用于子类。

摘要(Summary)

Public constructors

IDNA.Info()

构造函数。

公共方法(Public methods)

Set<IDNA.Error> getErrors()

返回指示IDNA处理错误的集合。

boolean hasErrors()

有没有IDNA处理错误?

boolean isTransitionalDifferent()

如果过渡和非过渡处理产生不同的结果,则返回true。

继承方法(Inherited methods)

From class java.lang.Object

Public constructors

IDNA.Info

Added in API level 24
IDNA.Info ()

构造函数。

公共方法(Public methods)

getErrors

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

返回指示IDNA处理错误的集合。

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

hasErrors

Added in API level 24
boolean hasErrors ()

有没有IDNA处理错误?

返回(Returns)
boolean true if there were processing errors

isTransitionalDifferent

Added in API level 24
boolean isTransitionalDifferent ()

如果过渡和非过渡处理产生不同的结果,则返回true。 当输入标签或域名在Punycode标签之外包含一个或多个偏差字符时(参见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

Hooray!