public static final class IDNA.Info
extends Object
| java.lang.Object | |
| android.icu.text.IDNA.Info | |
IDNA处理错误的输出容器。 Info类不适用于子类。
Public constructors |
|
|---|---|
IDNA.Info() 构造函数。 |
|
公共方法(Public methods) |
|
|---|---|
Set<IDNA.Error> |
getErrors() 返回指示IDNA处理错误的集合。 |
boolean |
hasErrors() 有没有IDNA处理错误? |
boolean |
isTransitionalDifferent() 如果过渡和非过渡处理产生不同的结果,则返回true。 |
继承方法(Inherited methods) |
|
|---|---|
java.lang.Object
|
|
Set<IDNA.Error> getErrors ()
返回指示IDNA处理错误的集合。
| 返回(Returns) | |
|---|---|
Set<IDNA.Error> |
set of processing errors (modifiable, and not null) |
boolean hasErrors ()
有没有IDNA处理错误?
| 返回(Returns) | |
|---|---|
boolean |
true if there were processing errors |
boolean isTransitionalDifferent ()
如果过渡和非过渡处理产生不同的结果,则返回true。 当输入标签或域名在Punycode标签之外包含一个或多个偏差字符时(参见UTS#46),就是这种情况。
| 返回(Returns) | |
|---|---|
boolean |
true if transitional and nontransitional processing produce different results |