63 lines
1.4 KiB
Smali
63 lines
1.4 KiB
Smali
.class public Lorg/apache/http/client/utils/Punycode;
|
|
.super Ljava/lang/Object;
|
|
.source "Punycode.java"
|
|
|
|
|
|
# annotations
|
|
.annotation build Lorg/apache/http/annotation/Immutable;
|
|
.end annotation
|
|
|
|
|
|
# static fields
|
|
.field private static final impl:Lorg/apache/http/client/utils/Idn;
|
|
|
|
|
|
# direct methods
|
|
.method public static constructor <clinit>()V
|
|
.locals 1
|
|
|
|
.line 1
|
|
:try_start_0
|
|
new-instance v0, Lorg/apache/http/client/utils/JdkIdn;
|
|
|
|
invoke-direct {v0}, Lorg/apache/http/client/utils/JdkIdn;-><init>()V
|
|
:try_end_0
|
|
.catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0
|
|
|
|
goto :goto_0
|
|
|
|
.line 2
|
|
:catch_0
|
|
new-instance v0, Lorg/apache/http/client/utils/Rfc3492Idn;
|
|
|
|
invoke-direct {v0}, Lorg/apache/http/client/utils/Rfc3492Idn;-><init>()V
|
|
|
|
.line 3
|
|
:goto_0
|
|
sput-object v0, Lorg/apache/http/client/utils/Punycode;->impl:Lorg/apache/http/client/utils/Idn;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public constructor <init>()V
|
|
.locals 0
|
|
|
|
.line 1
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public static toUnicode(Ljava/lang/String;)Ljava/lang/String;
|
|
.locals 1
|
|
|
|
.line 1
|
|
sget-object v0, Lorg/apache/http/client/utils/Punycode;->impl:Lorg/apache/http/client/utils/Idn;
|
|
|
|
invoke-interface {v0, p0}, Lorg/apache/http/client/utils/Idn;->toUnicode(Ljava/lang/String;)Ljava/lang/String;
|
|
|
|
move-result-object p0
|
|
|
|
return-object p0
|
|
.end method
|